From 68f706b7567b07d49be0bad302a466364919876c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 1 Aug 2015 18:30:52 +0000 Subject: Bypass Mac OS 10.11 bug in CGContextStrokePath() - continued git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_arci.cxx | 3 ++- src/fl_vertex.cxx | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fl_arci.cxx b/src/fl_arci.cxx index 13ce0240d..a4ef738c8 100644 --- a/src/fl_arci.cxx +++ b/src/fl_arci.cxx @@ -66,7 +66,8 @@ void Fl_Graphics_Driver::arc(int x,int y,int w,int h,double a1,double a2) { float r = (w+h)*0.25f-0.5f; CGContextAddArc(fl_gc, cx, cy, r, a1, a2, 1); } - CGContextStrokePath(fl_gc); + extern void CGContextStrokePath_fixed(CGContextRef); + CGContextStrokePath_fixed(fl_gc); CGContextSetShouldAntialias(fl_gc, false); #else # error unsupported platform diff --git a/src/fl_vertex.cxx b/src/fl_vertex.cxx index d665ae4e4..b700c7edd 100644 --- a/src/fl_vertex.cxx +++ b/src/fl_vertex.cxx @@ -35,6 +35,10 @@ #include #include +#if defined(__APPLE_QUARTZ__) +extern void CGContextStrokePath_fixed(CGContextRef); +#endif + void Fl_Graphics_Driver::push_matrix() { if (sptr==matrix_stack_size) Fl::error("fl_push_matrix(): matrix stack overflow."); @@ -122,7 +126,7 @@ void Fl_Graphics_Driver::end_points() { for (int i=0; i 1.5f) CGContextSetShouldAntialias(fl_gc, false); #else @@ -145,7 +149,7 @@ void Fl_Graphics_Driver::end_line() { CGContextMoveToPoint(fl_gc, p[0].x, p[0].y); for (int i=1; i