diff options
| author | Zufu Liu <unknown> | 2020-05-27 09:07:07 +1000 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2020-05-27 09:07:07 +1000 |
| commit | e5055a92d553f312bfde092f518e7fe75f134d82 (patch) | |
| tree | 1509fbd20136470ee88cd2d146b70bd08bd1c200 /win32/PlatWin.h | |
| parent | cd17af6631aefe5313f67a0cb6452154be204ec3 (diff) | |
| download | scintilla-mirror-e5055a92d553f312bfde092f518e7fe75f134d82.tar.gz | |
Backport: Bug [#2063]. Add SystemMetricsForDpi and use for ListBox and mouse drag and drop.
Simplify IME font definition.
Backport of changeset 8264:2dd165934cbb.
Diffstat (limited to 'win32/PlatWin.h')
| -rw-r--r-- | win32/PlatWin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/PlatWin.h b/win32/PlatWin.h index 440550160..cce68f43c 100644 --- a/win32/PlatWin.h +++ b/win32/PlatWin.h @@ -10,6 +10,10 @@ namespace Scintilla { +#ifndef USER_DEFAULT_SCREEN_DPI +#define USER_DEFAULT_SCREEN_DPI 96 +#endif + extern void Platform_Initialise(void *hInstance); extern void Platform_Finalise(bool fromDllMain); @@ -50,6 +54,8 @@ T DLLFunction(HMODULE hModule, LPCSTR lpProcName) noexcept { UINT DpiForWindow(WindowID wid) noexcept; +int SystemMetricsForDpi(int nIndex, UINT dpi) noexcept; + #if defined(USE_D2D) extern bool LoadD2D(); extern ID2D1Factory *pD2DFactory; |
