summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl.H8
1 files changed, 6 insertions, 2 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 1205a2189..bb4680fc9 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -785,7 +785,9 @@ public:
\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);
+ int x, y;
+ Fl::get_mouse(x, y);
+ screen_xywh(X, Y, W, H, x, y);
}
static 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, int n);
@@ -799,7 +801,9 @@ public:
\see void screen_work_area(int &x, int &y, int &w, int &h, int mx, int my)
*/
static void screen_work_area(int &X, int &Y, int &W, int &H) {
- screen_work_area(X, Y, W, H, e_x_root, e_y_root);
+ int x, y;
+ Fl::get_mouse(x, y);
+ screen_work_area(X, Y, W, H, x, y);
}
/** @} */