From cbb4918f4134ae98926d8fd79746a43d50e76fd5 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 14 Dec 2005 01:25:21 +0000 Subject: Change FOREVER back to 1e20 (minimal CPU usage) and change fl_wait() implementation on WIN32 to check for idle and to use a time_to_wait() of 0... (STR #1120) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Fl_win32.cxx') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index cf0d72772..8b21fe0e3 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -257,6 +257,8 @@ int fl_wait(double time_to_wait) { } #endif // USE_ASYNC_SELECT + if (Fl::idle) time_to_wait = 0.0; + fl_unlock_function(); time_to_wait = (time_to_wait > 10000 ? 10000 : time_to_wait); -- cgit v1.2.3