From fce791bd563134b793ddd79b45c91b7d59e14c7b Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 29 Nov 2022 10:22:23 +1100 Subject: Bug [#2344]. When GDI scaling is active, ensure correct monitor used for determining scale factor. Function name changed to avoid possibility of confusion with Win32 API. --- win32/PlatWin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32/PlatWin.h') diff --git a/win32/PlatWin.h b/win32/PlatWin.h index aa16e9f89..1391723dd 100644 --- a/win32/PlatWin.h +++ b/win32/PlatWin.h @@ -43,7 +43,7 @@ inline HWND HwndFromWindow(const Window &w) noexcept { void *PointerFromWindow(HWND hWnd) noexcept; void SetWindowPointer(HWND hWnd, void *ptr) noexcept; -HMONITOR MonitorFromWindow(HWND hWnd) noexcept; +HMONITOR MonitorFromWindowHandleScaling(HWND hWnd) noexcept; UINT DpiForWindow(WindowID wid) noexcept; int GetDeviceScaleFactorWhenGdiScalingActive(HWND hWnd) noexcept; -- cgit v1.2.3