Author: manolo
Date: 2010-10-07 03:50:13 -0700 (Thu, 07 Oct 2010)
New Revision: 7710
Log:
Correctly account for position of dock in Fl::x() and Fl::h() functions

Modified:
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2010-10-01 02:45:57 UTC (rev 7709)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2010-10-07 10:50:13 UTC (rev 7710)
@@ -1624,7 +1624,7 @@
  * smallest x ccordinate in screen space
  */
 int Fl::x() {
-  return [[NSScreen mainScreen] frame].origin.x;
+  return [[NSScreen mainScreen] visibleFrame].origin.x;
 }
 
 
@@ -1639,7 +1639,7 @@
 
 
 /*
- * screen width (single monitor!?)
+ * screen width
  */
 int Fl::w() {
   return [[NSScreen mainScreen] visibleFrame].size.width;
@@ -1647,12 +1647,10 @@
 
 
 /*
- * screen height (single monitor!?)
+ * screen height
  */
 int Fl::h() {
-  int bx, by, bt;
-  get_window_frame_sizes(bx, by, bt);
-  return [[NSScreen mainScreen] frame].size.height - bt;
+  return [[NSScreen mainScreen] visibleFrame].size.height;
 }
 
 

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

Reply via email to