You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.1 Reported for operating system, platform: Windows 10, x86_64
Comments on the original bug report:
On 2017-07-21 23:21:06 +0000, Eric Wasylishen wrote:
have a monitor with scaling set in Windows display settings. I have 2880x1800 with 200% scaling.
run testgl2 with "--info all". You should get the SDL_assert(hmon != NULL); assertion failing in WIN_GetDisplayUsableBounds.
Unfortunately I think the code in SDL_windowsmodes.c is fundamentally broken wherever it attempts to convert coordinates in the DEVMODE struct (which are always in pixels, even under DPI virtualization) to virtual screen coordinates (what MonitorFromPoint takes).
I think the only correct fix is to get a HMONITOR by doing a EnumDisplayMonitors and looking for a monitor name matching the DEVMODE.dmDeviceName , but I'm not sure about this as the msdn docs don't seem to say how to get a HMONITOR from a DEVMODE.
Tested on SDL2 7cfe088fafba, Windows 10 1703, build 15063.447
On 2017-08-11 07:22:33 +0000, Eric Wasylishen wrote:
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.1
Reported for operating system, platform: Windows 10, x86_64
Comments on the original bug report:
On 2017-07-21 23:21:06 +0000, Eric Wasylishen wrote:
On 2017-08-11 07:22:33 +0000, Eric Wasylishen wrote:
On 2017-08-11 17:19:45 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: