diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-05-21 14:48:44 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-05-21 14:48:44 +0000 |
| commit | 58c21c0bc6c5112c4c46208ba2264b3ad246c37c (patch) | |
| tree | dfe4cf17fb2507875905c572874365d4dada2841 /src | |
| parent | f2c27b5090314b318823b36cf5a74cb263239968 (diff) | |
Fix Visual Studio build with HiDPI support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 4 |
1 files 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"); |
