mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 10:57:58 +08:00
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
This commit is contained in:
+1
-8
@@ -125,16 +125,9 @@ cairo_t * Fl::cairo_make_current(void *gc) {
|
|||||||
# warning FIXME get W,H for cairo_make_current(void*)
|
# warning FIXME get W,H for cairo_make_current(void*)
|
||||||
#elif defined(__APPLE_QUARTZ__)
|
#elif defined(__APPLE_QUARTZ__)
|
||||||
if (fl_window) {
|
if (fl_window) {
|
||||||
#if __LP64__
|
|
||||||
W = Fl_Window::current()->w();
|
W = Fl_Window::current()->w();
|
||||||
H = Fl_Window::current()->h();
|
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 {
|
else {
|
||||||
W = CGBitmapContextGetHeight(fl_gc);
|
W = CGBitmapContextGetHeight(fl_gc);
|
||||||
H = CGBitmapContextGetHeight(fl_gc);
|
H = CGBitmapContextGetHeight(fl_gc);
|
||||||
|
|||||||
Reference in New Issue
Block a user