From 13b6a07c84a2d722521cfa7afe33bb327a0a56c9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 7 Dec 2022 21:18:48 +0300 Subject: compilation fix --- src/mir_core/src/Windows/miranda.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3