From 0d59e32b848953be121a86ccd068847dfa28d8fc Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 10 Apr 2022 15:09:25 +0200 Subject: Fix for issue #426 - cont'd. --- src/Fl_cocoa.mm | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3