X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b513212d2eab4daacd56606d6c7d489639e3215b..c60ba92d097bd49e204f140f22ade84a1b6bc38c:/src/x11/timer.cpp diff --git a/src/x11/timer.cpp b/src/x11/timer.cpp index ec9eaedb10..8de4e9a9a6 100644 --- a/src/x11/timer.cpp +++ b/src/x11/timer.cpp @@ -62,9 +62,12 @@ void wxTimerScheduler::QueueTimer(wxTimerDesc *desc, unsigned long when) { if ( desc->running ) return; // already scheduled - + +#pragma +#if 0 if ( when == 0 ) when = wxGetLocalTimeMillis() + desc->timer->GetInterval(); +#endif desc->shotTime = when; desc->running = TRUE; @@ -106,7 +109,11 @@ void wxTimerScheduler::NotifyTimers() { bool oneShot; volatile bool timerDeleted; - unsigned long now = wxGetLocalTimeMillis(); +#pragma + unsigned long now; +#if 0 + now = wxGetLocalTimeMillis(); +#endif wxTimerDesc *desc; while ( m_timers && m_timers->shotTime <= now )