summaryrefslogtreecommitdiff
path: root/src/Fl_Overlay_Window.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_Overlay_Window.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_Overlay_Window.cxx')
-rw-r--r--src/Fl_Overlay_Window.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Overlay_Window.cxx b/src/Fl_Overlay_Window.cxx
index 06a694c4a..72780f2f3 100644
--- a/src/Fl_Overlay_Window.cxx
+++ b/src/Fl_Overlay_Window.cxx
@@ -21,7 +21,7 @@ void Fl_Overlay_Window::hide() {
void Fl_Overlay_Window::flush() {
// turn off the bit set by redraw_overlay:
- clear_damage(damage()&~8);
+ clear_damage(damage()&~FL_DAMAGE_OVERLAY);
// even if damage() == 0, flush() will erase the fake overlay by
// copying back buffer over it. It will also set the clip to the
// region made by all the expose events:
@@ -44,7 +44,7 @@ Fl_Overlay_Window::~Fl_Overlay_Window() {
int Fl_Overlay_Window::can_do_overlay() {return 0;}
-void Fl_Overlay_Window::redraw_overlay() {overlay_ = this; damage(8);}
+void Fl_Overlay_Window::redraw_overlay() {overlay_ = this; damage(FL_DAMAGE_OVERLAY);}
#else
@@ -86,7 +86,7 @@ void _Fl_Overlay::flush() {
fl_overlay = 1;
Fl_Overlay_Window *w = (Fl_Overlay_Window *)parent();
Fl_X *i = Fl_X::i(this);
- if (damage() != 2) XClearWindow(fl_display, fl_xid(this));
+ if (damage() != FL_DAMAGE_EXPOSE) XClearWindow(fl_display, fl_xid(this));
fl_clip_region(i->region); i->region = 0;
w->draw_overlay();
fl_overlay = 0;
@@ -105,7 +105,7 @@ void Fl_Overlay_Window::redraw_overlay() {
}
if (shown()) {
if (overlay_ == this)
- damage(8);
+ damage(FL_DAMAGE_OVERLAY);
else if (!overlay_->shown())
overlay_->show();
else