2
0
Эх сурвалжийг харах

Win32: Fix full screen windows affected by scaling

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

Fixes #1582.

(cherry picked from commit 410890aa8058a0c5a33f2e00d750326ba412e466)
Camilla Löwy 4 жил өмнө
parent
commit
56230ca173
2 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 2 0
      README.md
  2. 1 1
      src/win32_window.c

+ 2 - 0
README.md

@@ -127,6 +127,8 @@ information on what to include when reporting a bug.
    configuration change (#1761)
  - [Win32] Bugfix: Initialization would segfault on Windows 8 (not 8.1) (#1775)
  - [Win32] Bugfix: Duplicate size events were not filtered (#1610)
+ - [Win32] Bugfix: Full screen windows were incorrectly resized by DPI changes
+   (#1582)
  - [Cocoa] Changed `EGLNativeWindowType` from `NSView` to `CALayer` (#1169)
  - [Cocoa] Bugfix: Non-BMP Unicode codepoint input was reported as UTF-16
    (#1635)

+ 1 - 1
src/win32_window.c

@@ -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,