diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-31 09:42:36 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-31 09:42:36 +0100 |
| commit | 4ba6cef0b96de6bf76a019cc2367267db8840c73 (patch) | |
| tree | a45c1ea0b809249c35c279907edddc5e3b614250 /src/Fl.cxx | |
| parent | 9d4d5ffdeb8dacb18f1af47772cb1ee56e7daca7 (diff) | |
Add Fl::keyboard_screen_scaling(int) to control recognition of ctrl/+/-/0/
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |
