From 562198fa3131684e7911ce8c8b0082bbbc617671 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 21 Mar 2005 11:38:52 +0000 Subject: Polygon drawing fixed #765, fl_message wrapped in Fl_Group::current(0), so it doesn't end up inside some current group #253. Undefined 'check' in Fl_Menu_Item_, so it will compile as an Apple XCode project (to be delivered later).. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_rect.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/fl_rect.cxx') diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx index a1c06f3b6..dc52f4ef2 100644 --- a/src/fl_rect.cxx +++ b/src/fl_rect.cxx @@ -346,8 +346,10 @@ void fl_polygon(int x, int y, int x1, int y1, int x2, int y2) { MoveTo(x, y); LineTo(x1, y1); LineTo(x2, y2); + LineTo(x, y); ClosePoly(); PaintPoly(poly); + FramePoly(poly); KillPoly(poly); #elif defined(__APPLE_QUARTZ__) CGContextMoveToPoint(fl_gc, x, y); @@ -377,8 +379,10 @@ void fl_polygon(int x, int y, int x1, int y1, int x2, int y2, int x3, int y3) { LineTo(x1, y1); LineTo(x2, y2); LineTo(x3, y3); + LineTo(x, y); ClosePoly(); PaintPoly(poly); + FramePoly(poly); KillPoly(poly); #elif defined(__APPLE_QUARTZ__) CGContextMoveToPoint(fl_gc, x, y); -- cgit v1.2.3