X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03e11df5470fd64d9d9a669d0b50b84c2d714736..050c9e3c90c58b05d5b3f7384d1556ca9669f13e:/src/mac/carbon/timer.cpp?ds=sidebyside diff --git a/src/mac/carbon/timer.cpp b/src/mac/carbon/timer.cpp index a958d21f1f..f2b5f2e896 100644 --- a/src/mac/carbon/timer.cpp +++ b/src/mac/carbon/timer.cpp @@ -72,13 +72,15 @@ bool wxTimer::Start(int milliseconds,bool mode) wxCHECK_MSG( m_info.m_task.tmAddr == NULL , FALSE, wxT("attempting to restart a timer") ); m_milli = milliseconds; -#ifdef __UNIX__ +#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340) m_info.m_task.tmAddr = NewTimerUPP( MacTimerProc ) ; #else m_info.m_task.tmAddr = NewTimerProc( MacTimerProc ) ; #endif m_info.m_task.tmWakeUp = 0 ; m_info.m_task.tmReserved = 0 ; + m_info.m_task.qType = 0 ; + m_info.m_timer = this ; InsXTime((QElemPtr) &m_info.m_task ) ; PrimeTime( (QElemPtr) &m_info.m_task , m_milli ) ; return FALSE;