Author: manolo
Date: 2012-02-21 04:27:31 -0800 (Tue, 21 Feb 2012)
New Revision: 9250
Log:
Allows compilation on 64-bit Mac OS X with FLTK_HAVE_CAIRO defined.

Modified:
   branches/branch-1.3/cairo/Fl_Cairo.cxx

Modified: branches/branch-1.3/cairo/Fl_Cairo.cxx
===================================================================
--- branches/branch-1.3/cairo/Fl_Cairo.cxx      2012-02-21 00:34:27 UTC (rev 
9249)
+++ branches/branch-1.3/cairo/Fl_Cairo.cxx      2012-02-21 12:27:31 UTC (rev 
9250)
@@ -109,10 +109,15 @@
 # warning FIXME get W,H for cairo_make_current(void*)
 #elif defined(__APPLE_QUARTZ__) 
     if (fl_window) {
+#if __LP64__
+      W = Fl_Window::current()->w();
+      H = Fl_Window::current()->h();
+#else
       Rect portRect; 
       GetPortBounds(GetWindowPort( Fl_X::i(Fl_Window::current())->window_ref() 
), &portRect);
       W = portRect.right-portRect.left;
       H = portRect.bottom-portRect.top;
+#endif
     } 
     else {
       W = CGBitmapContextGetHeight(fl_gc);

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

Reply via email to