summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-18 11:58:46 +0000
committerManolo Gouy <Manolo>2016-04-18 11:58:46 +0000
commit85b5f02a8b84182f779c79e671b28c6dc3dd0c25 (patch)
treece113edbaca945da07664dee2d4163144de454c5 /src/Fl.cxx
parent6818216c3047b7eea83138670f7bb6d02e7314b2 (diff)
Replace member function void Fl_X::flush() by virtual void Fl_Window_Driver::flush()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11646 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 38b9434b5..082f818b6 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -684,7 +684,10 @@ void Fl::flush() {
if (i->wait_for_expose) {damage_ = 1; continue;}
Fl_Window* wi = i->w;
if (!wi->visible_r()) continue;
- if (wi->damage()) {i->flush(); wi->clear_damage();}
+ if (wi->damage()) {
+ wi->driver()->flush();
+ wi->clear_damage();
+ }
// destroy damage regions for windows that don't use them:
if (i->region) {
fl_graphics_driver->XDestroyRegion(i->region);