X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93cf77c076b699e8e0b3b0049bd4f80de15997dd..520e470fdd0daef09c77938db642e4583933c90d:/src/stubs/timer.cpp diff --git a/src/stubs/timer.cpp b/src/stubs/timer.cpp index f976056c77..5262040cf6 100644 --- a/src/stubs/timer.cpp +++ b/src/stubs/timer.cpp @@ -22,7 +22,6 @@ IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject) wxTimer::wxTimer() { m_milli = 0 ; - m_lastMilli = -1 ; m_id = 0; m_oneShot = FALSE; } @@ -35,13 +34,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;