use one shot timers in wxAnimationCtrl (patch 1774535)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -215,6 +215,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()
|
||||||
- Set the string of wxEVT_COMMAND_CHECKLISTBOX_TOGGLED events (Luca Cappa)
|
- Set the string of wxEVT_COMMAND_CHECKLISTBOX_TOGGLED events (Luca Cappa)
|
||||||
|
- Fix problems with timers on SMP machines in wxAnimationCtrl (Gennady)
|
||||||
|
|
||||||
wxGTK:
|
wxGTK:
|
||||||
|
|
||||||
|
@@ -418,7 +418,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;
|
||||||
}
|
}
|
||||||
@@ -663,7 +663,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))
|
||||||
|
Reference in New Issue
Block a user