FLTK logo

[master] 4657899 - Don't activate scaling shortcuts if platform doesn't support scaling.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 4657899 - Don't activate scaling shortcuts if platform doesn't support scaling. "ManoloFLTK" Jun 09, 2021  
 
commit 465789951f38610e08c5761ef4209b226f569100
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Jun 9 23:20:38 2021 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Jun 9 23:20:49 2021 +0200

    Don't activate scaling shortcuts if platform doesn't support scaling.

 src/Fl_Screen_Driver.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Fl_Screen_Driver.cxx src/Fl_Screen_Driver.cxx
index 20bf38f..de925ba 100644
--- src/Fl_Screen_Driver.cxx
+++ 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);
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.