Win32: Fix full screen windows affected by scaling

Per-monitor DPI scaling should not affect full screen windows.

Fixes #1582.
This commit is contained in:
Camilla Löwy
2021-01-19 22:25:05 +01:00
parent 6de084000b
commit 410890aa80
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1140,7 +1140,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
// Only apply the suggested size if the OS is new enough to have
// sent a WM_GETDPISCALEDSIZE before this
if (_glfwIsWindows10CreatorsUpdateOrGreaterWin32())
if (_glfwIsWindows10CreatorsUpdateOrGreaterWin32() && !window->monitor)
{
RECT* suggested = (RECT*) lParam;
SetWindowPos(window->win32.handle, HWND_TOP,