aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-11-29 10:22:23 +1100
committerNeil <nyamatongwe@gmail.com>2022-11-29 10:22:23 +1100
commitfce791bd563134b793ddd79b45c91b7d59e14c7b (patch)
tree80bae5dcd6cdd20f02aa3462d9f506b454bebe56 /win32/PlatWin.h
parent8cedd574bc15453d86926a71f9a8197dc5fdb5ee (diff)
downloadscintilla-mirror-fce791bd563134b793ddd79b45c91b7d59e14c7b.tar.gz
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.
Diffstat (limited to 'win32/PlatWin.h')
-rw-r--r--win32/PlatWin.h2
1 files changed, 1 insertions, 1 deletions
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;