diff options
author | Neil <nyamatongwe@gmail.com> | 2022-11-29 10:22:23 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-11-29 10:22:23 +1100 |
commit | fce791bd563134b793ddd79b45c91b7d59e14c7b (patch) | |
tree | 80bae5dcd6cdd20f02aa3462d9f506b454bebe56 /win32/ScintillaWin.cxx | |
parent | 8cedd574bc15453d86926a71f9a8197dc5fdb5ee (diff) | |
download | scintilla-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/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index efbe1f000..42927433f 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -606,7 +606,7 @@ bool ScintillaWin::UpdateRenderingParams(bool force) noexcept { } } const HWND hRootWnd = ::GetAncestor(MainHWND(), GA_ROOT); - const HMONITOR monitor = Internal::MonitorFromWindow(hRootWnd); + const HMONITOR monitor = Internal::MonitorFromWindowHandleScaling(hRootWnd); if (!force && monitor == hCurrentMonitor && renderingParams->defaultRenderingParams) { return false; } |