mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
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
This commit is contained in:
@@ -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$".
|
||||
|
||||
Reference in New Issue
Block a user