Fix fl_endpoints() for macOS platform that was not effective.

This commit is contained in:
ManoloFLTK 2021-03-13 20:06:18 +01:00
parent 368f18016c
commit ce142e80df

View File

@ -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() {