mirror of https://github.com/fltk/fltk
Fix STR#2857: screen_xywh() mouse pointer functions may initially return wrong data.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
9788ee6709
commit
702b452540
8
FL/Fl.H
8
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);
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
|
Loading…
Reference in New Issue