From 512332670a87377ba6b705232d22a67681fba3ff Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 19 Oct 1998 17:53:09 +0000 Subject: 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 --- src/Fl_Group.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_Group.cxx') 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(); } -- cgit v1.2.3