diff options
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx index 796f60c36..f1b086566 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx @@ -18,6 +18,7 @@ #include "../../config_lib.h" +#include <FL/Fl.H> #include "Fl_WinAPI_Window_Driver.H" #include <windows.h> @@ -247,6 +248,14 @@ void Fl_WinAPI_Window_Driver::icons(HICON big_icon, HICON small_icon) Fl_X::i(pWindow)->set_icons(); } +void Fl_WinAPI_Window_Driver::wait_for_expose() { + if (!pWindow->shown()) return; + Fl_X *i = Fl_X::i(pWindow); + while (!i || i->wait_for_expose) { + Fl::wait(); + } +} + // // End of "$Id$". // |
