diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-03-06 11:10:37 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-03-06 11:10:37 +0100 |
| commit | d988930461b449f8e0c29507048e3a3b205504d7 (patch) | |
| tree | e55c5f117683397b75dde1ac7fc94dd5048e3434 /src/drivers/X11/Fl_X11_Screen_Driver.H | |
| parent | a7a3c5b4298a2f23de5deba7cfb87a73f4eec279 (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/drivers/X11/Fl_X11_Screen_Driver.H')
| -rw-r--r-- | src/drivers/X11/Fl_X11_Screen_Driver.H | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.H b/src/drivers/X11/Fl_X11_Screen_Driver.H index 65432d860..600a54584 100644 --- a/src/drivers/X11/Fl_X11_Screen_Driver.H +++ b/src/drivers/X11/Fl_X11_Screen_Driver.H @@ -55,7 +55,7 @@ public: virtual APP_SCALING_CAPABILITY rescalable() { return PER_SCREEN_APP_SCALING; } virtual float scale(int n) {return screens[n].scale;} virtual void scale(int n, float f) { screens[n].scale = f;} - virtual float desktop_scale_factor(); + virtual void desktop_scale_factor(); int screen_num_unscaled(int x, int y); #endif |
