Win32: Fix full screen windows affected by scaling

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

Fixes #1582.

(cherry picked from commit 410890aa80)
This commit is contained in:
Camilla Löwy
2021-01-19 22:25:05 +01:00
parent c6fa2c8cfb
commit 56230ca173
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1133,7 +1133,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,