summaryrefslogtreecommitdiff
path: root/src/Fl_Pack.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-10-19 17:53:09 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-10-19 17:53:09 +0000
commit512332670a87377ba6b705232d22a67681fba3ff (patch)
tree82b915d0cbcb2cefbe0fe7088dc6e5ad398e9306 /src/Fl_Pack.cxx
parent33ee986a7b69e05e1fe110c685747381bba481a9 (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_Pack.cxx')
-rw-r--r--src/Fl_Pack.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Pack.cxx b/src/Fl_Pack.cxx
index c236f29c6..551755a7d 100644
--- a/src/Fl_Pack.cxx
+++ b/src/Fl_Pack.cxx
@@ -40,7 +40,7 @@ void Fl_Pack::draw() {
H = o->h();
}
if (spacing_ && current_position>maximum_position &&
- (X != o->x() || Y != o->y() || d&128)) {
+ (X != o->x() || Y != o->y() || d&FL_DAMAGE_ALL)) {
fl_color(color());
if (horizontal())
fl_rectf(maximum_position, ty, spacing_, th);
@@ -49,9 +49,9 @@ void Fl_Pack::draw() {
}
if (X != o->x() || Y != o->y() || W != o->w() || H != o->h()) {
o->resize(X,Y,W,H);
- o->clear_damage(~0);
+ o->clear_damage(FL_DAMAGE_ALL);
}
- if (d&128) draw_child(*o); else update_child(*o);
+ if (d&FL_DAMAGE_ALL) draw_child(*o); else update_child(*o);
// child's draw() can change it's size, so use new size:
current_position += (horizontal() ? o->w() : o->h());
if (current_position > maximum_position)
@@ -73,6 +73,6 @@ void Fl_Pack::draw() {
}
tw += Fl::box_dw(box()); if (tw <= 0) tw = 1;
th += Fl::box_dh(box()); if (th <= 0) th = 1;
- if (tw != w() || th != h()) {Fl_Widget::resize(x(),y(),tw,th); d = 128;}
- if (d&128) draw_box();
+ if (tw != w() || th != h()) {Fl_Widget::resize(x(),y(),tw,th); d = FL_DAMAGE_ALL;}
+ if (d&FL_DAMAGE_ALL) draw_box();
}