summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
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;
}