summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl.H7
-rw-r--r--src/screen_xywh.cxx4
2 files changed, 8 insertions, 3 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index d9413a8ae..13655e746 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -604,7 +604,12 @@ public:
// multi-head support:
static int screen_count();
- /** See void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my) */
+ /**
+ Gets the bounding box of a screen
+ that contains the mouse pointer in.
+ \param[out] X,Y,W,H the corresponding screen bounding box
+ \see void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my)
+ */
static void screen_xywh(int &X, int &Y, int &W, int &H) {
screen_xywh(X, Y, W, H, e_x_root, e_y_root);
}
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx
index 529e74c4b..1b04cbfc6 100644
--- a/src/screen_xywh.cxx
+++ b/src/screen_xywh.cxx
@@ -152,9 +152,9 @@ int Fl::screen_count() {
/**
Gets the bounding box of a screen
- where the mouse pointer is in.
+ that contains the specified screen position \a mx, \a my
\param[out] X,Y,W,H the corresponding screen bounding box
- \param[in] mx, my the mouse absolute screen position
+ \param[in] mx, my the absolute screen position
*/
void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my) {
if (!num_screens) screen_init();