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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user