diff --git a/docs/changes.txt b/docs/changes.txt index 240827e296..a51c95621c 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -122,6 +122,7 @@ wxMSW: - Fixed bug with symbol resolving in wxStackWalker (Axel Gembe). - Fixed showing busy cursor for disabled windows and during wxExecute() - Added wxBORDER_THEME, used automatically by wxTextCtrl in wxTE_RICH[2] mode. +- Fix problems with timers on SMP machines in wxAnimationCtrl (Gennady) wxGTK: diff --git a/src/generic/animateg.cpp b/src/generic/animateg.cpp index 3c026ef61b..4888745ae6 100644 --- a/src/generic/animateg.cpp +++ b/src/generic/animateg.cpp @@ -417,7 +417,7 @@ bool wxAnimationCtrl::Play(bool looped) int delay = m_animation.GetDelay(0); if (delay == 0) delay = 1; // 0 is invalid timeout for wxTimer. - m_timer.Start(delay); + m_timer.Start(delay, true); return true; } @@ -662,7 +662,7 @@ void wxAnimationCtrl::OnTimer(wxTimerEvent &WXUNUSED(event)) int delay = m_animation.GetDelay(m_currentFrame); if (delay == 0) delay = 1; // 0 is invalid timeout for wxTimer. - m_timer.Start(delay); + m_timer.Start(delay, true); } void wxAnimationCtrl::OnSize(wxSizeEvent &WXUNUSED(event))