diff options
| author | Manolo Gouy <Manolo> | 2016-09-26 12:08:37 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-09-26 12:08:37 +0000 |
| commit | 45e6be7316af7f2950f83b2c5cc28cf985315bf7 (patch) | |
| tree | 26a736af8d13bc58954fb1eb59546dd6aca186af | |
| parent | 7698a4b98e089cf83ea201f6483558fa71b3ac04 (diff) | |
Mac OS platform: Remove old Carbon code from cairo/Fl_Cairo.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | cairo/Fl_Cairo.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cairo/Fl_Cairo.cxx b/cairo/Fl_Cairo.cxx index ee767c9fd..a762c67d9 100644 --- a/cairo/Fl_Cairo.cxx +++ b/cairo/Fl_Cairo.cxx @@ -127,16 +127,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); |
