summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-03-09 16:27:27 +0000
committerManolo Gouy <Manolo>2018-03-09 16:27:27 +0000
commit7f78b1ef1468bb8242fb7fb37e3f27d0a8052ce1 (patch)
tree517c45c18c7dc28f8d3a05662a75497c408c1dbe /src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
parent12f628514771294102d2aa961373373a95ddab6b (diff)
Windows: remove necessity to compile with -DFLTK_HIDPI_SUPPORT to make WIN32 FLTK apps DPI-aware.
At this point, Windows FLTK apps detect HighDPI displays and rescale their GUI accordingly. They also all reply to ctrl/+/-/0/ keystrokes to enlarge/shrink/reset their windows. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
index d6dfaf889..6fe3d49e1 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
@@ -42,9 +42,7 @@ protected:
static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT r, LPARAM);
BOOL screen_cb(HMONITOR mon, HDC, LPRECT r);
int get_mouse_unscaled(int &mx, int &my);
-#ifdef FLTK_HIDPI_SUPPORT
void init_screen_scale_factors();
-#endif
public:
Fl_WinAPI_Screen_Driver() : Fl_Screen_Driver() {
@@ -86,7 +84,6 @@ public:
virtual void disable_im();
virtual void open_display_platform();
virtual void offscreen_size(Fl_Offscreen off, int &width, int &height);
-#if defined(FLTK_HIDPI_SUPPORT)
virtual APP_SCALING_CAPABILITY rescalable() {
return PER_SCREEN_APP_SCALING;
}
@@ -96,9 +93,6 @@ public:
virtual void scale(int n, float f) {
scale_of_screen[n] = f;
}
-#else
- float DWM_scaling_factor();
-#endif
virtual float desktop_scale_factor();
};