summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-28 10:08:44 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-28 10:08:44 +0100
commit401b3dc008f81c11fd08d786ed251127e122860f (patch)
tree4d27ec3b073d75a6b3a91a1e3f641f431be8fb6f /src/Fl.cxx
parentc827292ec9c9170a7a87d0a3f3eda3db171ae031 (diff)
Doc: repeat that screens are numbered starting from 0 in the API
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index aa2c9f41e..15eee143e 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -2162,13 +2162,13 @@ int Fl::get_font_sizes(Fl_Font fnum, int*& sizep) {
return Fl_Graphics_Driver::default_driver().get_font_sizes(fnum, sizep);
}
-/** Current value of the GUI scaling factor for screen number \p n */
+/** Current value of the GUI scaling factor for screen number \p n (n ∈ [0 , Fl::screen_count()-1]) */
float Fl::screen_scale(int n) {
if (!Fl::screen_scaling_supported() || n < 0 || n >= Fl::screen_count()) return 1.;
return Fl::screen_driver()->scale(n);
}
-/** Sets the value of the GUI scaling factor for screen number \p n.
+/** Sets the value of the GUI scaling factor for screen number \p n (n ∈ [0 , Fl::screen_count()-1]).
Also sets the scale factor value of all windows mapped to screen number \p n, if any.
*/
void Fl::screen_scale(int n, float factor) {