summaryrefslogtreecommitdiff
path: root/src/fl_rect.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-03-21 11:38:52 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-03-21 11:38:52 +0000
commit562198fa3131684e7911ce8c8b0082bbbc617671 (patch)
tree79cb3b5834ef7cc9996e1298e1ca157769bdbb78 /src/fl_rect.cxx
parent05766857c4312da280154361eb80c65cb14b3bfd (diff)
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
Diffstat (limited to 'src/fl_rect.cxx')
-rw-r--r--src/fl_rect.cxx4
1 files changed, 4 insertions, 0 deletions
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);