diff options
| -rw-r--r-- | src/Fl_Double_Window.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index 38e5a71e7..37da5ae9e 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Double_Window.cxx,v 1.9 1998/11/05 16:04:45 mike Exp $" +// "$Id: Fl_Double_Window.cxx,v 1.10 1999/01/07 16:47:15 mike Exp $" // // Double-buffered window code for the Fast Light Tool Kit (FLTK). // @@ -117,7 +117,7 @@ void Fl_Double_Window::flush(int eraseoverlay) { #if USE_XDBE if (use_xdbe) { // if this is true, copy rather than swap so back buffer is preserved: - int copy = (i->region || eraseoverlay); + int copy = (!(damage()&FL_DAMAGE_ALL) || i->region || eraseoverlay); if (i->backbuffer_bad) { // make sure we do a complete redraw... if (i->region) {XDestroyRegion(i->region); i->region = 0;} clear_damage(FL_DAMAGE_ALL); @@ -192,5 +192,5 @@ Fl_Double_Window::~Fl_Double_Window() { } // -// End of "$Id: Fl_Double_Window.cxx,v 1.9 1998/11/05 16:04:45 mike Exp $". +// End of "$Id: Fl_Double_Window.cxx,v 1.10 1999/01/07 16:47:15 mike Exp $". // |
