From fd4fea4228828440e0bc88b1cd419479119c661f Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 29 Dec 2002 22:04:24 +0000 Subject: [PATCH] wxUsleep is supposed to sleep _milli_seconds, not _micro_seconds. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/app.cpp | 4 ++-- src/os2/utils.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os2/app.cpp b/src/os2/app.cpp index 4d47ed1550..4bebb62925 100644 --- a/src/os2/app.cpp +++ b/src/os2/app.cpp @@ -836,13 +836,13 @@ int wxApp::MainLoop() while (!Pending() && ProcessIdle()) { HandleSockets(); - wxUsleep(10000); + wxUsleep(10); } HandleSockets(); if (Pending()) DoMessage(); else - wxUsleep(10000); + wxUsleep(10); } return (int)svCurrentMsg.mp1; diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index c60c92419b..c2c6d6ef20 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -282,7 +282,7 @@ void wxUsleep( unsigned long ulMilliseconds ) { - ::DosSleep(ulMilliseconds/1000l); + ::DosSleep(ulMilliseconds); } void wxSleep(