I have developed and shipped a game and everything was fine until I started to get reports about game window being too big on windowed & fullscreen mode.
After a while, I have figured it out that if you have anything else than 100% Windows Dekstop scale it will mess up resolutions.
QUESTION: Is there a way to get the Windows Dekstop scale factor somehow? Or at least the original resolution without scaling?
EXAMPLE: My desktop resolution is set to 1920x1080 but my scale is 125%.
This means that windowed mode of 960x540 will be actually 1200x675
The same goes for the fullscreen mode where in this case, only 75% of the screen is visible. If I could get my hands on that scale factor I could fix the viewport accordingly.