From 4ba6cef0b96de6bf76a019cc2367267db8840c73 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 31 Jan 2020 09:42:36 +0100 Subject: Add Fl::keyboard_screen_scaling(int) to control recognition of ctrl/+/-/0/ --- src/Fl.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index 2652ad9ff..6f2660611 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -2154,6 +2154,14 @@ int Fl::screen_scaling_supported() { return Fl::screen_driver()->rescalable(); } +/** Controls the possibilty to scale all windows by ctrl/+/-/0/ or cmd/+/-/0/. + This function must be called before fl_open_display() runs to be effective. + \param value 0 to stop recognition of ctrl/+/-/0/ (or cmd/+/-/0/ under macOS) keys as window scaling. + */ +void Fl::keyboard_screen_scaling(int value) { + Fl::screen_driver()->keyboard_screen_scaling = value; +} + // Pointers you can use to change FLTK to another language. // Note: Similar pointers are defined in FL/fl_ask.H and src/fl_ask.cxx FL_EXPORT const char* fl_local_shift = Fl::system_driver()->shift_name(); -- cgit v1.2.3