]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/timer.cpp
wxX11 might compile now.
[wxWidgets.git] / src / x11 / timer.cpp
index ec9eaedb1087b437099f8c5a478272c5c5f7f9c3..8de4e9a9a62346f47e31b40ca1a8a05de7ebd3a7 100644 (file)
@@ -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 )