aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.h
diff options
context:
space:
mode:
authorMarkus Nißl <unknown>2022-10-29 21:05:25 +1100
committerMarkus Nißl <unknown>2022-10-29 21:05:25 +1100
commitc0371d58dfd4d055b040ba7274fb5b537532d257 (patch)
tree38d75d82fbe12ee04985f17395ac1fb715f6c411 /win32/PlatWin.h
parente04a2cf64168091c804bb8856db6cb5d85d3251d (diff)
downloadscintilla-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.h2
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;