diff options
| author | Markus Nißl <unknown> | 2022-10-29 21:05:25 +1100 |
|---|---|---|
| committer | Markus Nißl <unknown> | 2022-10-29 21:05:25 +1100 |
| commit | c0371d58dfd4d055b040ba7274fb5b537532d257 (patch) | |
| tree | 38d75d82fbe12ee04985f17395ac1fb715f6c411 /win32/PlatWin.h | |
| parent | e04a2cf64168091c804bb8856db6cb5d85d3251d (diff) | |
| download | scintilla-mirror-c0371d58dfd4d055b040ba7274fb5b537532d257.tar.gz | |
Bug [#2344]. Use the top-level window to find the monitor for DirectWrite
rendering parameters. Temporarily switch DPI awareness to find correct monitor
in GDI scaling mode.
https://sourceforge.net/p/scintilla/code/merge-requests/34/
Diffstat (limited to 'win32/PlatWin.h')
| -rw-r--r-- | win32/PlatWin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/PlatWin.h b/win32/PlatWin.h index 68098f9c7..8261aeb2d 100644 --- a/win32/PlatWin.h +++ b/win32/PlatWin.h @@ -43,6 +43,8 @@ inline HWND HwndFromWindow(const Window &w) noexcept { void *PointerFromWindow(HWND hWnd) noexcept; void SetWindowPointer(HWND hWnd, void *ptr) noexcept; +HMONITOR MonitorFromWindow(HWND hWnd) noexcept; + UINT DpiForWindow(WindowID wid) noexcept; int SystemMetricsForDpi(int nIndex, UINT dpi) noexcept; |
