summaryrefslogtreecommitdiff
path: root/cairo
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-11-09 14:35:55 +0000
committerManolo Gouy <Manolo>2018-11-09 14:35:55 +0000
commit43b511b784e4350562d0639dfd7a078d761ec54d (patch)
treebb7d01608524f019a2dcac596aefb325aae4374a /cairo
parentb325a6b4b20e250a6907e520a70a9ab2d772adf9 (diff)
Fix macOS 10.14 Mojave support of the FLTK-cairo interface.
After experimenting with a modified cairo_test program that draws both with cairo and with regular FLTK drawing functions to the same window, it seems necessary to control for possible changes to the graphics context made by cairo in Fl_Cocoa_Window_Driver::make_current() rather than in cairo_create_surface(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'cairo')
-rw-r--r--cairo/Fl_Cairo.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/cairo/Fl_Cairo.cxx b/cairo/Fl_Cairo.cxx
index b6807a2ea..41a4e4b6d 100644
--- a/cairo/Fl_Cairo.cxx
+++ b/cairo/Fl_Cairo.cxx
@@ -103,13 +103,6 @@ static cairo_surface_t * cairo_create_surface(void * gc, int W, int H) {
# elif defined(_WIN32)
return cairo_win32_surface_create((HDC) gc);
# elif defined(__APPLE_QUARTZ__)
- CGAffineTransform mat = CGContextGetCTM((CGContextRef)gc);
- if (mat.d > 0) { // necessary for layer-backed Cairo windows
- CGContextRestoreGState((CGContextRef)gc);
- CGContextRestoreGState((CGContextRef)gc);
- CGContextSaveGState((CGContextRef)gc);
- CGContextSaveGState((CGContextRef)gc);
- }
return cairo_quartz_surface_create_for_cg_context((CGContextRef) gc, W, H);
# else
# error Cairo is not supported under this platform.