summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-12-07 21:18:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-12-07 21:18:48 +0300
commit13b6a07c84a2d722521cfa7afe33bb327a0a56c9 (patch)
treee73b9898aa2af5f48eab59a714b5b8fcc869405f /src/mir_core
parent5fdf5d795aaf459c419f5d0f1b67704cdb8d8db0 (diff)
compilation fix
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/Windows/miranda.cpp2
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;
}