Author: manolo
Date: 2012-10-18 05:56:31 -0700 (Thu, 18 Oct 2012)
New Revision: 9701
Log:
Fix STR#2857: screen_xywh() mouse pointer functions may initially return wrong 
data.

Modified:
   branches/branch-1.3/FL/Fl.H

Modified: branches/branch-1.3/FL/Fl.H
===================================================================
--- branches/branch-1.3/FL/Fl.H 2012-10-16 15:48:24 UTC (rev 9700)
+++ branches/branch-1.3/FL/Fl.H 2012-10-18 12:56:31 UTC (rev 9701)
@@ -785,7 +785,9 @@
       \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 @@
    \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);
   }
 
   /**   @} */

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to