From 0c303164ba1c941ab3a1088cdcb26f8ccb4e697a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 26 Sep 2016 09:22:55 +0000 Subject: [PATCH] Mac OS platform: Remove old Carbon code from cairo/Fl_Cairo.cxx git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- cairo/Fl_Cairo.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cairo/Fl_Cairo.cxx b/cairo/Fl_Cairo.cxx index 1063a3076..6207d3c2e 100644 --- a/cairo/Fl_Cairo.cxx +++ b/cairo/Fl_Cairo.cxx @@ -125,16 +125,9 @@ 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); H = CGBitmapContextGetHeight(fl_gc);