diff options
| -rw-r--r-- | FL/Fl_Double_Window.H | 6 | ||||
| -rw-r--r-- | src/Fl_Double_Window.cxx | 15 |
2 files changed, 16 insertions, 5 deletions
diff --git a/FL/Fl_Double_Window.H b/FL/Fl_Double_Window.H index ad858a933..2c8c5ccd4 100644 --- a/FL/Fl_Double_Window.H +++ b/FL/Fl_Double_Window.H @@ -49,7 +49,11 @@ class FL_EXPORT Fl_Double_Window : public Fl_Window { protected: void flush(int eraseoverlay); - char force_doublebuffering_; // force db, even if the OS already buffers windows (overlays need that on MacOS and Windows2000) + /** + Force double buffering, even if the OS already buffers windows + (overlays need that on MacOS and Windows2000) + */ + char force_doublebuffering_; public: void show(); void show(int a, char **b) {Fl_Window::show(a,b);} diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index def6f818e..6c86284e7 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -327,12 +327,19 @@ char fl_can_do_alpha_blending() { #endif -// Fl_Overlay_Window relies on flush(1) copying the back buffer to the -// front everywhere, even if damage() == 0, thus erasing the overlay, -// and leaving the clip region set to the entire window. - +/** + Forces the window to be redrawn. +*/ void Fl_Double_Window::flush() {flush(0);} +/** + Forces the window to be redrawn. + \param[in] eraseoverlay non-zero to erase overlay, zero to ignore + + Fl_Overlay_Window relies on flush(1) copying the back buffer to the + front everywhere, even if damage() == 0, thus erasing the overlay, + and leaving the clip region set to the entire window. +*/ void Fl_Double_Window::flush(int eraseoverlay) { make_current(); // make sure fl_gc is non-zero Fl_X *myi = Fl_X::i(this); |
