]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/evtloop_cf.cpp
adding magnification API into the wxWindow classes for best retina support
[wxWidgets.git] / src / osx / core / evtloop_cf.cpp
index 19b10e49116492876d520c5ea14bb82f93981100..9eefc0d22bf1da8d19c9f59401f93924ed930b0b 100644 (file)
@@ -304,11 +304,13 @@ int wxCFEventLoop::DoProcessEvents()
 {
     if ( m_shouldWaitForEvent )
     {
-        int  handled = DispatchTimeout( 10000 );
+        int  handled = DispatchTimeout( 1000 );
         wxASSERT_MSG( handled == 1, "No Event Available");
         m_shouldWaitForEvent = false;
+        return handled;
     }
-    return DispatchTimeout( 0 );
+    else
+        return DispatchTimeout( 0 );
 }
 
 bool wxCFEventLoop::Dispatch()