diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-03-01 15:47:23 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-03-01 15:47:30 +0100 |
| commit | b771ee53b9e7c9a182764994ddd0852d91cc833f (patch) | |
| tree | 2cb173cb097d4fcf07e0ccb15243332fe237cde1 /src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx | |
| parent | 0623a8d4b9e8a56cc435dc550c6b56fa1a9607e9 (diff) | |
Remove duplicated code between derived classes of Fl_Graphics_Driver - cont'd.
Diffstat (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx index 952c65b3d..56f7e7afe 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx @@ -51,12 +51,6 @@ void Fl_Quartz_Graphics_Driver::end_line() { CGContextSetShouldAntialias(gc_, false); } -void Fl_Quartz_Graphics_Driver::end_loop() { - fixloop(); - if (n>2) transformed_vertex((float)p[0].x, (float)p[0].y); - end_line(); -} - void Fl_Quartz_Graphics_Driver::end_polygon() { fixloop(); if (n < 3) { @@ -73,21 +67,6 @@ void Fl_Quartz_Graphics_Driver::end_polygon() { CGContextSetShouldAntialias(gc_, false); } -void Fl_Quartz_Graphics_Driver::begin_complex_polygon() { - begin_polygon(); - gap_ = 0; -} - -void Fl_Quartz_Graphics_Driver::gap() { - while (n>gap_+2 && p[n-1].x == p[gap_].x && p[n-1].y == p[gap_].y) n--; - if (n > gap_+2) { - transformed_vertex((float)p[gap_].x, (float)p[gap_].y); - gap_ = n; - } else { - n = gap_; - } -} - void Fl_Quartz_Graphics_Driver::end_complex_polygon() { gap(); if (n < 3) { @@ -121,7 +100,3 @@ void Fl_Quartz_Graphics_Driver::circle(double x, double y,double r) { (what == POLYGON ? CGContextFillPath : CGContextStrokePath)(gc_); CGContextSetShouldAntialias(gc_, false); } - -void Fl_Quartz_Graphics_Driver::fixloop() { // remove equal points from closed path - while (n>2 && p[n-1].x == p[0].x && p[n-1].y == p[0].y) n--; -} |
