Author: manolo
Date: 2012-05-21 09:19:35 -0700 (Mon, 21 May 2012)
New Revision: 9542
Log:
Minor improvement of the update_e_xy_and_e_xy_root() function.
Modified:
branches/branch-3.0/src/fltk3/cocoa.mm
Modified: branches/branch-3.0/src/fltk3/cocoa.mm
===================================================================
--- branches/branch-3.0/src/fltk3/cocoa.mm 2012-05-21 14:44:44 UTC (rev
9541)
+++ branches/branch-3.0/src/fltk3/cocoa.mm 2012-05-21 16:19:35 UTC (rev
9542)
@@ -645,7 +645,7 @@
pt = [nsw mouseLocationOutsideOfEventStream];
fltk3::e_x = int(pt.x);
fltk3::e_y = int([[nsw contentView] frame].size.height - pt.y);
- pt = [NSEvent mouseLocation];
+ pt = [nsw convertBaseToScreen:pt];
fltk3::e_x_root = int(pt.x);
fltk3::e_y_root = int(main_screen_height - pt.y);
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit