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)