Win32: Fix full screen windows affected by scaling

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

Fixes #1582.
master
Camilla Löwy ago%!(EXTRA string=4 years)
parent 6de084000b
commit 410890aa80
  1. 2
      README.md
  2. 2
      src/win32_window.c

@ -159,6 +159,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] Added support for `VK_EXT_metal_surface` (#1619)
- [Cocoa] Added locating the Vulkan loader at runtime in an application bundle
- [Cocoa] Moved main menu creation to GLFW initialization time (#1649)

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

Loading…
Cancel
Save