Double-buffered window speedup from Bill.

git-svn-id: file:///fltk/svn/fltk/trunk@190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1999-01-07 16:47:15 +00:00
parent 123f28a473
commit 680bdba2dd
1 changed files with 3 additions and 3 deletions

View File

@ -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 $".
//