summaryrefslogtreecommitdiff
path: root/src/Fl_Screen_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-03-06 11:10:37 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-03-06 11:10:37 +0100
commitd988930461b449f8e0c29507048e3a3b205504d7 (patch)
treee55c5f117683397b75dde1ac7fc94dd5048e3434 /src/Fl_Screen_Driver.H
parenta7a3c5b4298a2f23de5deba7cfb87a73f4eec279 (diff)
Process env var FLTK_SCALING_FACTOR consistently across platforms.
The procedure to set screen scaling factors becomes: 1) each screen scaling factor is set to 1 2) the OS is queried according to each platform to get screen scaling factor values 3) The value of FLTK_SCALING_FACTOR, if present, is used to multiply scaling factors
Diffstat (limited to 'src/Fl_Screen_Driver.H')
-rw-r--r--src/Fl_Screen_Driver.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Screen_Driver.H b/src/Fl_Screen_Driver.H
index 6e4edcd0a..4c2587f1d 100644
--- a/src/Fl_Screen_Driver.H
+++ b/src/Fl_Screen_Driver.H
@@ -175,8 +175,8 @@ public:
void rescale_all_windows_from_screen(int screen, float f);
static void transient_scale_display(float f, int nscreen);
static int scale_handler(int event);
- virtual float desktop_scale_factor() {return 1;}
- float use_startup_scale_factor();
+ virtual void desktop_scale_factor() {}
+ void use_startup_scale_factor();
enum APP_SCALING_CAPABILITY {
NO_APP_SCALING = 0, ///< The platform does not support rescaling.
SYSTEMWIDE_APP_SCALING, ///< The platform supports rescaling with the same factor for all screens.