use one shot timers in wxAnimationCtrl (patch 1774535)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-08-15 11:36:50 +00:00
parent 1346171e5f
commit 1e64ae1faf
2 changed files with 3 additions and 2 deletions

View File

@@ -122,6 +122,7 @@ wxMSW:
- Fixed bug with symbol resolving in wxStackWalker (Axel Gembe). - Fixed bug with symbol resolving in wxStackWalker (Axel Gembe).
- Fixed showing busy cursor for disabled windows and during wxExecute() - Fixed showing busy cursor for disabled windows and during wxExecute()
- Added wxBORDER_THEME, used automatically by wxTextCtrl in wxTE_RICH[2] mode. - Added wxBORDER_THEME, used automatically by wxTextCtrl in wxTE_RICH[2] mode.
- Fix problems with timers on SMP machines in wxAnimationCtrl (Gennady)
wxGTK: wxGTK:

View File

@@ -417,7 +417,7 @@ bool wxAnimationCtrl::Play(bool looped)
int delay = m_animation.GetDelay(0); int delay = m_animation.GetDelay(0);
if (delay == 0) if (delay == 0)
delay = 1; // 0 is invalid timeout for wxTimer. delay = 1; // 0 is invalid timeout for wxTimer.
m_timer.Start(delay); m_timer.Start(delay, true);
return true; return true;
} }
@@ -662,7 +662,7 @@ void wxAnimationCtrl::OnTimer(wxTimerEvent &WXUNUSED(event))
int delay = m_animation.GetDelay(m_currentFrame); int delay = m_animation.GetDelay(m_currentFrame);
if (delay == 0) if (delay == 0)
delay = 1; // 0 is invalid timeout for wxTimer. delay = 1; // 0 is invalid timeout for wxTimer.
m_timer.Start(delay); m_timer.Start(delay, true);
} }
void wxAnimationCtrl::OnSize(wxSizeEvent &WXUNUSED(event)) void wxAnimationCtrl::OnSize(wxSizeEvent &WXUNUSED(event))