summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index e3cd499c1..2ad838785 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -3500,6 +3500,10 @@ void Fl_Cocoa_Window_Driver::make_current()
// this is the context with origin at top left of (sub)window
CGContextSaveGState(gc);
fl_clip_region( 0 );
+#ifdef FLTK_HAVE_CAIROEXT
+ // update the cairo_t context
+ if (Fl::cairo_autolink_context()) Fl::cairo_make_current(pWindow);
+#endif
}
// Give the Quartz context back to the system