X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93cf77c076b699e8e0b3b0049bd4f80de15997dd..1be06faf7318abf88a35b299b90ceb2a49c0353b:/src/stubs/timer.cpp diff --git a/src/stubs/timer.cpp b/src/stubs/timer.cpp index f976056c77..d845d50108 100644 --- a/src/stubs/timer.cpp +++ b/src/stubs/timer.cpp @@ -15,14 +15,11 @@ #include "wx/timer.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject) -#endif wxTimer::wxTimer() { m_milli = 0 ; - m_lastMilli = -1 ; m_id = 0; m_oneShot = FALSE; } @@ -35,13 +32,10 @@ wxTimer::~wxTimer() bool wxTimer::Start(int milliseconds,bool mode) { m_oneShot = mode ; - if (m_milliseconds < 0) - m_milliseconds = lastMilli; - - if (m_milliseconds <= 0) + if (milliseconds <= 0) return FALSE; - m_lastMilli = m_milli = m_milliseconds; + m_milli = milliseconds; // TODO: set the timer going. return FALSE;