From 58c21c0bc6c5112c4c46208ba2264b3ad246c37c Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 21 May 2017 14:48:44 +0000 Subject: [PATCH] Fix Visual Studio build with HiDPI support. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 81831b728..7507b6fb4 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -500,7 +500,7 @@ void Fl_WinAPI_Screen_Driver::open_display() { beenHereDoneThat = 1; #ifdef FLTK_HIDPI_SUPPORT - typedef HRESULT WINAPI (*SetProcessDpiAwareness_type)(int); + typedef HRESULT (WINAPI* SetProcessDpiAwareness_type)(int); HMODULE hMod = LoadLibrary("Shcore.DLL"); if (hMod) { SetProcessDpiAwareness_type fl_SetProcessDpiAwareness = (SetProcessDpiAwareness_type)GetProcAddress(hMod, "SetProcessDpiAwareness"); @@ -517,7 +517,7 @@ void Fl_WinAPI_Screen_Driver::open_display() { float Fl_WinAPI_Screen_Driver::desktop_scale_factor() { - typedef HRESULT WINAPI (*GetDpiForMonitor_type)(HMONITOR, int, UINT*, UINT*); + typedef HRESULT (WINAPI* GetDpiForMonitor_type)(HMONITOR, int, UINT*, UINT*); float f = 1; #ifdef FLTK_HIDPI_SUPPORT HMODULE hMod = LoadLibrary("Shcore.DLL");