summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-01-07 16:47:15 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-01-07 16:47:15 +0000
commit680bdba2dd2ba65f8b1a0ff646ab2d602ac3424a (patch)
tree4254e383c71bc1a062fb1906c1ab9aa279d83e9b /src
parent123f28a4739d72072dfd25321478bfdcafa3f0e0 (diff)
Double-buffered window speedup from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-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 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 $".
//