From db38696c48605e46e61c6698fe9873c056bb7ddf Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Mon, 13 Dec 2021 00:10:23 +0300 Subject: [PATCH] Fix calling convention for SetProcessDpiAwareness A few changes ago a WINAPI was lost on SetProcessDpiAwareness function declaration. This is incorrect because it changes calling convention from stdcall to cdecl. --- src/SFML/Window/Win32/WindowImplWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 1cb34ff9..f7f559db 100755 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -85,7 +85,7 @@ namespace ProcessPerMonitorDpiAware = 2 }; - using SetProcessDpiAwarenessFuncType = HRESULT (*)(ProcessDpiAwareness); + using SetProcessDpiAwarenessFuncType = HRESULT (WINAPI *)(ProcessDpiAwareness); auto SetProcessDpiAwarenessFunc = reinterpret_cast(reinterpret_cast(GetProcAddress(shCoreDll, "SetProcessDpiAwareness"))); if (SetProcessDpiAwarenessFunc)