From d19f4797213efaba7484691a807a1cde5f66675b Mon Sep 17 00:00:00 2001 From: Cameron Egbert Date: Mon, 10 Jun 2019 16:20:57 -0700 Subject: [PATCH] Platform: fix DpiScaling to handle calling conventions properly on Windows. --- src/Magnum/Platform/Implementation/DpiScaling.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/Implementation/DpiScaling.cpp b/src/Magnum/Platform/Implementation/DpiScaling.cpp index 3f971b70d..f5e3ee8eb 100644 --- a/src/Magnum/Platform/Implementation/DpiScaling.cpp +++ b/src/Magnum/Platform/Implementation/DpiScaling.cpp @@ -155,7 +155,7 @@ bool isWindowsAppDpiAware() { need. */ HMODULE const shcore = GetModuleHandleA("Shcore.dll"); if(shcore) { - auto* const getProcessDpiAwareness = reinterpret_cast(GetProcAddress(shcore, "GetProcessDpiAwareness")); + auto* const getProcessDpiAwareness = reinterpret_cast(GetProcAddress(shcore, "GetProcessDpiAwareness")); PROCESS_DPI_AWARENESS result{}; return getProcessDpiAwareness && getProcessDpiAwareness(nullptr, &result) == S_OK && result != PROCESS_DPI_UNAWARE; } @@ -166,7 +166,7 @@ bool isWindowsAppDpiAware() { correctly. */ HMODULE const user32 = GetModuleHandleA("User32.dll"); CORRADE_INTERNAL_ASSERT(user32); - auto const isProcessDPIAware = reinterpret_cast(GetProcAddress(user32, "IsProcessDPIAware")); + auto const isProcessDPIAware = reinterpret_cast(GetProcAddress(user32, "IsProcessDPIAware")); CORRADE_INTERNAL_ASSERT(isProcessDPIAware); return isProcessDPIAware(); }