From 680bdba2dd2ba65f8b1a0ff646ab2d602ac3424a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 7 Jan 1999 16:47:15 +0000 Subject: Double-buffered window speedup from Bill. git-svn-id: file:///fltk/svn/fltk/trunk@190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Double_Window.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 $". // -- cgit v1.2.3