diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 2a0e08790..3b41bb1a5 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1878,7 +1878,12 @@ int Fl_Wayland_Screen_Driver::get_key(int k) { float Fl_Wayland_Screen_Driver::base_scale(int numscreen) { - return 1.f; + const char *p; + float factor = 1; + if ((p = fl_getenv("FLTK_SCALING_FACTOR"))) { + sscanf(p, "%f", &factor); + } + return factor; } |
