summaryrefslogtreecommitdiff
path: root/src/Fl_win32.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-07-07 15:06:51 +0000
committerManolo Gouy <Manolo>2017-07-07 15:06:51 +0000
commit9f69df923fa4a672274c013f8969416f19925be8 (patch)
tree764c70b05fa00cd2d89a31b9597f48a628944567 /src/Fl_win32.cxx
parent7847c2d87ab85b54f846f8ab240b5e866e9a6593 (diff)
Define Fl_WinAPI_Screen_Driver::DWM_scaling_factor() only without FLTK_HIDPI_SUPPORT.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
-rw-r--r--src/Fl_win32.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index df43f59a5..f1ca65e61 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -813,7 +813,7 @@ void Fl_WinAPI_System_Driver::paste(Fl_Widget &receiver, int clipboard, const ch
width = int(width / (scaling * factor)); // convert to screen pixel unit
height = int(height / (scaling * factor));
#else
- float scaling = ((Fl_WinAPI_Screen_Driver*)Fl::screen_driver())->DWM_scaling_factor(0);
+ float scaling = ((Fl_WinAPI_Screen_Driver*)Fl::screen_driver())->DWM_scaling_factor();
width = int(width * scaling / factor); // convert to screen pixel unit
height = int(height * scaling / factor);
scaling = 1;
@@ -2547,7 +2547,7 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top
#ifdef FLTK_HIDPI_SUPPORT
float DWMscaling = scaling;
#else
- float DWMscaling = ((Fl_WinAPI_Screen_Driver*)Fl::screen_driver())->DWM_scaling_factor(0);
+ float DWMscaling = ((Fl_WinAPI_Screen_Driver*)Fl::screen_driver())->DWM_scaling_factor();
#endif
// capture the 4 window sides from screen
Fl_WinAPI_Screen_Driver *dr = (Fl_WinAPI_Screen_Driver*)Fl::screen_driver();