Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Could anyone explain why ccbGetScreenWidth() and ccbGetScreenHeight() return completely differnet values to the window/resolution publish settings ?? I have my window/resolution set to 800x600 but the ccbGetScreen functions return 1000x750. Is there a built in function without having to use magic numbers to get the exact screen width and height ? I'm try to use ccbRenderToTexture but the exact screen size is required when resizing my window. Thanks. |
||||
|
Your Windows system may be using a high DPI scaling setting. - Navigate to Settings - System - Display - Scale and Layout - Check if the scaling value is above 100% – this could be the cause of the problem. By enabling the high DPI scaling (setting it to 125%), I was able to reproduce the effect you described with a minimal scene setup. If you want to keep your global DPI scaling setting, you can adjust the settings for each application individually. Like this: - Right-click on CopperCube.exe (or your game exe) - Properties - Compatibility-tab - Click on "Change high DPI settings" - Under "Program DPI" - set "Use this setting to fix scaling problems..." - Under "High DPI scaling override" - set "Override high DPI scaling behavior" to "Application" Tested under Windows 10. Hopefully this works for you. |
||||
|
Genius! yup, that was the problem. I'm was using 125% for my display scaling. When I think of it, makes sense now, if I multiply the resolution setting by 125% I can get the resolution that coppercube thinks my display is. |
||||
|
|