diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-01-31 15:48:21 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-01-31 15:48:21 +0100 |
| commit | f93b825b08fd848d793bd65f9a87d7f99b5df8b8 (patch) | |
| tree | b2bb9cccf31fc4bcd21b9a3b11ea68285a4adace /src/Fl.cxx | |
| parent | 65a798f9a237f149d5c320697440fd9cb030f460 (diff) | |
Update Fl::keyboard_screen_scaling()
- make the internal variable static
- make it callable after fl_open_display()
- document that it's currently only usable to switch scaling off
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 5f6d1e236..6742b0bc9 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -3,17 +3,17 @@ // // Main event handling code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2018 by Bill Spitzak and others. +// Copyright 1998-2020 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the license at: // -// http://www.fltk.org/COPYING.php +// https://www.fltk.org/COPYING.php // // Please report all bugs and problems on the following page: // -// http://www.fltk.org/str.php +// https://www.fltk.org/str.php // /** \file @@ -2155,11 +2155,20 @@ int Fl::screen_scaling_supported() { } /** Controls the possibility 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. - */ + + This function \b should be called before fl_open_display() runs. + If it is not called, the default is to handle these keys for + window scaling. + + \note This function can currently only be used to switch the internal + handler \b off, i.e. \p value must be 0 (zero) - all other values + result in undefined behavior and are reserved for future extension. + + \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; + Fl_Screen_Driver::keyboard_screen_scaling = value; } // Pointers you can use to change FLTK to another language. |
