summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2012-02-21 12:27:31 +0000
committerManolo Gouy <Manolo>2012-02-21 12:27:31 +0000
commit0130df031ab558be11dfde8cc2d7cbabc4bdfa36 (patch)
tree058fccbcf2e23579425bd702f1d73ba740a1093e
parente920c28d0b7b1afbc554438d2d0e0b45545827e8 (diff)
Allows compilation on 64-bit Mac OS X with FLTK_HAVE_CAIRO defined.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--cairo/Fl_Cairo.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/cairo/Fl_Cairo.cxx b/cairo/Fl_Cairo.cxx
index c7a08c559..7a030ad57 100644
--- a/cairo/Fl_Cairo.cxx
+++ b/cairo/Fl_Cairo.cxx
@@ -109,10 +109,15 @@ cairo_t * Fl::cairo_make_current(void *gc) {
# 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);