diff options
author | George Hazan <ghazan@miranda.im> | 2022-12-07 21:18:48 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-12-07 21:18:48 +0300 |
commit | 13b6a07c84a2d722521cfa7afe33bb327a0a56c9 (patch) | |
tree | e73b9898aa2af5f48eab59a714b5b8fcc869405f /src/mir_core | |
parent | 5fdf5d795aaf459c419f5d0f1b67704cdb8d8db0 (diff) |
compilation fix
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/Windows/miranda.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/Windows/miranda.cpp b/src/mir_core/src/Windows/miranda.cpp index 36f75e4ea1..d13e69ff1f 100644 --- a/src/mir_core/src/Windows/miranda.cpp +++ b/src/mir_core/src/Windows/miranda.cpp @@ -246,7 +246,7 @@ static void EnableDpiAware() if (HMODULE hInst = GetModuleHandleW(L"user32")) { typedef void (WINAPI *pfnSetProcessDpiAwarenessContext)(HANDLE); if (auto *pFunc = (pfnSetProcessDpiAwarenessContext)GetProcAddress(hInst, "SetProcessDpiAwarenessContext")) { - pFunc(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); + pFunc(HANDLE(-4)); return; } |