summaryrefslogtreecommitdiff
path: root/src/Fl_Double_Window.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Double_Window.cxx')
-rw-r--r--src/Fl_Double_Window.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx
index 4cc060870..b25552cc0 100644
--- a/src/Fl_Double_Window.cxx
+++ b/src/Fl_Double_Window.cxx
@@ -36,9 +36,9 @@ static int can_xdbe() {
}
return use_xdbe;
}
-#define DAMAGE_TEST() (damage() && (use_xdbe || damage() != 2))
+#define DAMAGE_TEST() (damage() && (use_xdbe || damage() != FL_DAMAGE_EXPOSE))
#else
-#define DAMAGE_TEST() (damage() & ~2)
+#define DAMAGE_TEST() (damage() & ~FL_DAMAGE_EXPOSE)
#endif
void Fl_Double_Window::show() {
@@ -92,7 +92,7 @@ void Fl_Double_Window::flush() {
else
#endif
i->other_xid = fl_create_offscreen(w(), h());
- clear_damage(~0);
+ clear_damage(FL_DAMAGE_ALL);
}
#ifdef WIN32
fl_clip_region(i->region); i->region = 0;