Try / OpenGothic

Reimplementation of Gothic 2 Notr
MIT License
1.07k stars 78 forks source link

[Windows] Game resolution is not set correctly #587

Closed hwnde closed 2 months ago

hwnde commented 2 months ago

OpenGothic uses GetClientRect function to determine the game resolution. But the problem with it is that the result depends on the scaling factor set in the System->Display settings. If Scale is set above 100% (which is common for high dpi monitors) then GetClientRect will return scaled numbers, i.e. 200% 3840x2160 -> 1920x1080.

hwnde commented 2 months ago

Noticed that there is already such issue reported. Will close this one.