summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-06-09 23:20:38 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-06-09 23:20:49 +0200
commit465789951f38610e08c5761ef4209b226f569100 (patch)
treedf60ed4f51e818e50d5dcb2ce6e1dfc28718c518 /src
parent3c84894f19650703e8fa30d0d5eb87100a6fc4a4 (diff)
Don't activate scaling shortcuts if platform doesn't support scaling.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Screen_Driver.cxx b/src/Fl_Screen_Driver.cxx
index 20bf38f57..de925baa5 100644
--- a/src/Fl_Screen_Driver.cxx
+++ b/src/Fl_Screen_Driver.cxx
@@ -477,7 +477,7 @@ void Fl_Screen_Driver::open_display()
been_here = true;
if (rescalable()) {
use_startup_scale_factor();
- if (keyboard_screen_scaling)
+ if (keyboard_screen_scaling && rescalable())
Fl::add_handler(Fl_Screen_Driver::scale_handler);
int mx, my;
int ns = Fl::screen_driver()->get_mouse(mx, my);