|
|
commit 6dd63788ed50dae882ec0c5d1a789b3b82b5e697
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sun Mar 14 08:22:10 2021 +0100
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sun Mar 14 08:22:24 2021 +0100
Fix fl_endpoints() for macOS platform that was not effective.
src/fl_vertex.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git src/fl_vertex.cxx src/fl_vertex.cxx
index d665ae4..788fbfe 100644
--- src/fl_vertex.cxx
+++ src/fl_vertex.cxx
@@ -120,9 +120,7 @@ void Fl_Graphics_Driver::end_points() {
#elif defined(__APPLE_QUARTZ__)
if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(fl_gc, true);
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(fl_gc);
+ point(p[i].x, p[i].y);
}
if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(fl_gc, false);
#else
[ Direct Link to Message ] | |
|
| |