From 5552a0cce720dfa7b3fa22222863432537c175ed Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 16 Dec 2005 11:34:04 +0000 Subject: STR #1104: WIN32 version would insist on running a full length timeout even if it knew already that the UI needed to be updated. This could cause a quite long delay when a timeout was used to trigger a redraw. Probably true for threads as well... . git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 8b21fe0e3..36372b296 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -257,7 +257,8 @@ int fl_wait(double time_to_wait) { } #endif // USE_ASYNC_SELECT - if (Fl::idle) time_to_wait = 0.0; + if (Fl::idle || Fl::damage()) + time_to_wait = 0.0; fl_unlock_function(); -- cgit v1.2.3