summaryrefslogtreecommitdiff
path: root/src/Fl_Overlay_Window.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-03-13 22:16:37 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-03-13 22:16:37 +0000
commitb496d18b85917106c48e8e6f74115b3122b603d1 (patch)
tree4d96befa4377a81c89c6a32f4d66220199572938 /src/Fl_Overlay_Window.cxx
parent30756ae3500a62bd8f63b4df3eb3ca8f6b8b0b70 (diff)
Fixed 'flush()' code for single, double, and overlay buffering
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Overlay_Window.cxx')
-rw-r--r--src/Fl_Overlay_Window.cxx17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/Fl_Overlay_Window.cxx b/src/Fl_Overlay_Window.cxx
index c1ae2728e..07065fbb0 100644
--- a/src/Fl_Overlay_Window.cxx
+++ b/src/Fl_Overlay_Window.cxx
@@ -53,20 +53,9 @@ void Fl_Overlay_Window::hide() {
Fl_Double_Window::hide();
}
-void Fl_Overlay_Window::flush() {
-#ifdef BOXX_BUGS
- if (overlay_ && overlay_ != this && overlay_->shown()) {
- // all drawing to windows hidden by overlay windows is ignored, fix this
- XUnmapWindow(fl_display, fl_xid(overlay_));
- Fl_Double_Window::flush(0);
- XMapWindow(fl_display, fl_xid(overlay_));
- return;
- }
-#endif
- int erase_overlay = (damage()&FL_DAMAGE_OVERLAY) | (overlay_ == this);
- clear_damage((uchar)(damage()&~FL_DAMAGE_OVERLAY));
- Fl_Double_Window::flush(erase_overlay);
- if (overlay_ == this) draw_overlay();
+void Fl_Overlay_Window::flush()
+{
+ driver()->flush_overlay();
}
void Fl_Overlay_Window::resize(int X, int Y, int W, int H) {