call Refresh() to make animation work under Mac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-09 21:15:00 +00:00
parent 97ebfd549b
commit 7444cb50d1

View File

@@ -531,6 +531,11 @@ void wxAnimationCtrl::OnTimer(wxTimerEvent &WXUNUSED(event))
wxClientDC dc(this);
DrawCurrentFrame(dc);
#ifdef __WXMAC__
// without this, the animation currently doesn't redraw under Mac
Refresh();
#endif // __WXMAC__
// Set the timer for the next frame
int delay = m_animation.GetDelay(m_currentFrame);
if (delay == 0)