diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-03-13 20:06:18 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-03-13 20:06:28 +0100 |
| commit | ce142e80dfe56e90d922649fa43e577a609dc1af (patch) | |
| tree | 58c983d68624e27ba2634e201470d64e54ca00f6 /src/drivers | |
| parent | 368f18016c96a1516e9e72bc151e523ec94622a8 (diff) | |
Fix fl_endpoints() for macOS platform that was not effective.
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx index 56f7e7afe..2e85f3f8d 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx @@ -28,13 +28,9 @@ void Fl_Quartz_Graphics_Driver::end_points() { - if (quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(gc_, true); - for (int i=0; i<n; i++) { - CGContextMoveToPoint(gc_, p[i].x, p[i].y); - CGContextAddLineToPoint(gc_, p[i].x, p[i].y); - CGContextStrokePath(gc_); + for (int i = 0; i < n; i++) { + point(p[i].x, p[i].y); } - if (quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(gc_, false); } void Fl_Quartz_Graphics_Driver::end_line() { |
