diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_ask.cxx | 6 | ||||
| -rw-r--r-- | src/fl_rect.cxx | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx index 5e75fab42..016b52495 100644 --- a/src/fl_ask.cxx +++ b/src/fl_ask.cxx @@ -59,6 +59,11 @@ static Fl_Window *makeform() { message_form->size(410,103); return message_form; } + // make sure that the dialog does not become the child of some + // current group + Fl_Group *previously_current_group = Fl_Group::current(); + Fl_Group::current(0); + // create a new top level window Fl_Window *w = message_form = new Fl_Window(410,103,""); // w->clear_border(); // w->box(FL_UP_BOX); @@ -82,6 +87,7 @@ static Fl_Window *makeform() { w->resizable(new Fl_Box(60,10,110-60,27)); w->end(); w->set_modal(); + Fl_Group::current(previously_current_group); return w; } 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); |
