mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 06:14:28 +08:00
Fix fl_endpoints() for macOS platform that was not effective.
This commit is contained in:
@@ -28,13 +28,9 @@
|
|||||||
|
|
||||||
|
|
||||||
void Fl_Quartz_Graphics_Driver::end_points() {
|
void Fl_Quartz_Graphics_Driver::end_points() {
|
||||||
if (quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(gc_, true);
|
for (int i = 0; i < n; i++) {
|
||||||
for (int i=0; i<n; i++) {
|
point(p[i].x, p[i].y);
|
||||||
CGContextMoveToPoint(gc_, p[i].x, p[i].y);
|
|
||||||
CGContextAddLineToPoint(gc_, p[i].x, p[i].y);
|
|
||||||
CGContextStrokePath(gc_);
|
|
||||||
}
|
}
|
||||||
if (quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(gc_, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Fl_Quartz_Graphics_Driver::end_line() {
|
void Fl_Quartz_Graphics_Driver::end_line() {
|
||||||
|
|||||||
Reference in New Issue
Block a user