summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-12-16 11:34:04 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-12-16 11:34:04 +0000
commit5552a0cce720dfa7b3fa22222863432537c175ed (patch)
tree32e46c961b698723db454d3851b4d5c763ea697b /src
parent3cdd5a4c8d17818848e54c0d33a949ba2963fee2 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx3
1 files changed, 2 insertions, 1 deletions
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();