Improve documentation of Fl::screen_num(int x, int y)

This commit is contained in:
ManoloFLTK 2023-07-07 15:11:26 +02:00
parent 6fbc7ad86e
commit 3d03a5426b
1 changed files with 3 additions and 0 deletions

View File

@ -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)
{