diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-19 17:53:09 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-19 17:53:09 +0000 |
| commit | 512332670a87377ba6b705232d22a67681fba3ff (patch) | |
| tree | 82b915d0cbcb2cefbe0fe7088dc6e5ad398e9306 /src/Fl_Group.cxx | |
| parent | 33ee986a7b69e05e1fe110c685747381bba481a9 (diff) | |
Added Gustavo's damage() update - now use symbolic constants for all values!
git-svn-id: file:///fltk/svn/fltk/trunk@18 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Group.cxx')
| -rw-r--r-- | src/Fl_Group.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index e1a0b43ad..373fdfd1e 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -376,7 +376,7 @@ void Fl_Group::resize(int X, int Y, int W, int H) { void Fl_Group::draw() { Fl_Widget*const* a = array(); - if (damage() & ~1) { // redraw the entire thing: + if (damage() & ~FL_DAMAGE_CHILD) { // redraw the entire thing: draw_box(); draw_label(); for (int i=children_; i--;) { @@ -402,7 +402,7 @@ void Fl_Group::update_child(Fl_Widget& w) const { void Fl_Group::draw_child(Fl_Widget& w) const { if (w.visible() && w.type() < FL_WINDOW && fl_not_clipped(w.x(), w.y(), w.w(), w.h())) { - w.clear_damage(~0); + w.clear_damage(FL_DAMAGE_ALL); w.draw(); w.clear_damage(); } |
