summaryrefslogtreecommitdiff
path: root/src/fl_vertex.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_vertex.cxx')
-rw-r--r--src/fl_vertex.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fl_vertex.cxx b/src/fl_vertex.cxx
index b4cf94492..ae65fa5d4 100644
--- a/src/fl_vertex.cxx
+++ b/src/fl_vertex.cxx
@@ -107,6 +107,10 @@ void Fl_Graphics_Driver::transformed_vertex0(COORD_T x, COORD_T y) {
}
}
+void Fl_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--;
+}
+
// -----------------------------------------------------------------------------