diff options
Diffstat (limited to 'src/Fl_Group.cxx')
| -rw-r--r-- | src/Fl_Group.cxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index a1606fc32..17ab21b52 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Group.cxx,v 1.8.2.8.2.18 2002/08/09 01:09:48 easysw Exp $" +// "$Id: Fl_Group.cxx,v 1.8.2.8.2.19 2002/11/08 15:22:11 easysw Exp $" // // Group widget for the Fast Light Tool Kit (FLTK). // @@ -519,11 +519,9 @@ void Fl_Group::resize(int X, int Y, int W, int H) { Fl_Widget::resize(X,Y,W,H); } -void Fl_Group::draw() { +void Fl_Group::draw_children() { Fl_Widget*const* a = array(); if (damage() & ~FL_DAMAGE_CHILD) { // redraw the entire thing: - draw_box(); - draw_label(); for (int i=children_; i--;) { Fl_Widget& o = **a++; draw_child(o); @@ -534,6 +532,15 @@ void Fl_Group::draw() { } } +void Fl_Group::draw() { + Fl_Widget*const* a = array(); + if (damage() & ~FL_DAMAGE_CHILD) { // redraw the entire thing: + draw_box(); + draw_label(); + } + draw_children(); +} + // Draw a child only if it needs it: void Fl_Group::update_child(Fl_Widget& widget) const { if (widget.damage() && widget.visible() && widget.type() < FL_WINDOW && @@ -587,5 +594,5 @@ void Fl_Group::draw_outside_label(const Fl_Widget& widget) const { } // -// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.18 2002/08/09 01:09:48 easysw Exp $". +// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.19 2002/11/08 15:22:11 easysw Exp $". // |
