summaryrefslogtreecommitdiff
path: root/src/screen_xywh.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-07-07 15:11:26 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-07-07 15:11:26 +0200
commit3d03a5426b649f7c78c2c3dde3e6149e573f9d99 (patch)
treec15a4a9ff04d846e2b2da89092798b2fbc9b908d /src/screen_xywh.cxx
parent6fbc7ad86eadeb1b5405e322553bff4b7aeb0775 (diff)
Improve documentation of Fl::screen_num(int x, int y)
Diffstat (limited to 'src/screen_xywh.cxx')
-rw-r--r--src/screen_xywh.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx
index 59c12c969..87fa2d6ae 100644
--- a/src/screen_xywh.cxx
+++ b/src/screen_xywh.cxx
@@ -133,6 +133,9 @@ void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my, int mw, int
that contains the specified screen position \p x, \p y
\param[in] x, y the absolute screen position
\return a screen number ∈ [0 , Fl::screen_count()-1]
+ \attention When the running system contains screens with different scaling factor values, this API
+ may become ambiguous because a given value pair (\p x, \p y) may belong to distinct screens.
+ In that situation, other APIs should be preferred, e.g., Fl_Window::screen_num() and Fl::screen_scale(int).
*/
int Fl::screen_num(int x, int y)
{