From 237ae161367455a103f2a5fb0c61cfbbc51ccf7d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 23 Jan 2016 00:42:18 +0000 Subject: Last set of Xlib fixes for vertex drawing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/cfg_gfx/xlib_vertex.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/cfg_gfx/xlib_vertex.cxx b/src/cfg_gfx/xlib_vertex.cxx index 082a446c3..9fe73a27c 100644 --- a/src/cfg_gfx/xlib_vertex.cxx +++ b/src/cfg_gfx/xlib_vertex.cxx @@ -52,10 +52,6 @@ void Fl_Xlib_Graphics_Driver::end_line() { if (n>1) XDrawLines(fl_display, fl_window, fl_gc, p, n, 0); } -void Fl_Xlib_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--; -} - void Fl_Xlib_Graphics_Driver::end_loop() { fixloop(); if (n>2) transformed_vertex((COORD_T)p[0].x, (COORD_T)p[0].y); @@ -113,7 +109,7 @@ void Fl_Xlib_Graphics_Driver::circle(double x, double y,double r) { (fl_display, fl_window, fl_gc, llx, lly, w, h, 0, 360*64); } -#endif FL_CFG_GFX_XLIB_VERTEX_CXX +#endif // FL_CFG_GFX_XLIB_VERTEX_CXX // // End of "$Id$". -- cgit v1.2.3