summaryrefslogtreecommitdiff
path: root/src/fl_vertex.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-08-05 20:20:30 +0000
committerManolo Gouy <Manolo>2015-08-05 20:20:30 +0000
commit9a38c24d638023059db9059c3805f0f62b455dbd (patch)
tree42cda86629460358045a0693f40fc0419be6cc1d /src/fl_vertex.cxx
parent99c536234e0a2cd9624686ea94e7b41e7f53de6f (diff)
The CGContextStrokePath bug has been fixed in Mac OS El Capitan (10.11) public beta 4.
It's no longer necessary to apply a workaround for it. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10825 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_vertex.cxx')
-rw-r--r--src/fl_vertex.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/fl_vertex.cxx b/src/fl_vertex.cxx
index b700c7edd..d665ae4e4 100644
--- a/src/fl_vertex.cxx
+++ b/src/fl_vertex.cxx
@@ -35,10 +35,6 @@
#include <FL/math.h>
#include <stdlib.h>
-#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.");
@@ -126,7 +122,7 @@ void Fl_Graphics_Driver::end_points() {
for (int i=0; i<n; i++) {
CGContextMoveToPoint(fl_gc, p[i].x, p[i].y);
CGContextAddLineToPoint(fl_gc, p[i].x, p[i].y);
- CGContextStrokePath_fixed(fl_gc);
+ CGContextStrokePath(fl_gc);
}
if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(fl_gc, false);
#else
@@ -149,7 +145,7 @@ void Fl_Graphics_Driver::end_line() {
CGContextMoveToPoint(fl_gc, p[0].x, p[0].y);
for (int i=1; i<n; i++)
CGContextAddLineToPoint(fl_gc, p[i].x, p[i].y);
- CGContextStrokePath_fixed(fl_gc);
+ CGContextStrokePath(fl_gc);
CGContextSetShouldAntialias(fl_gc, false);
#else
# error unsupported platform
@@ -269,7 +265,7 @@ void Fl_Graphics_Driver::circle(double x, double y,double r) {
// Last argument must be 0 (counter-clockwise) or it draws nothing under __LP64__ !!!!
CGContextSetShouldAntialias(fl_gc, true);
CGContextAddArc(fl_gc, xt, yt, (w+h)*0.25f, 0, 2.0f*M_PI, 0);
- (what == POLYGON ? CGContextFillPath : CGContextStrokePath_fixed)(fl_gc);
+ (what == POLYGON ? CGContextFillPath : CGContextStrokePath)(fl_gc);
CGContextSetShouldAntialias(fl_gc, false);
#else
# error unsupported platform