From 7444cb50d188bb20773ab0c54eccb540f044947d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 9 Oct 2006 21:15:00 +0000 Subject: [PATCH] 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 --- src/generic/animateg.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/generic/animateg.cpp b/src/generic/animateg.cpp index 90cb3cae6a..4a0ac66c9a 100644 --- a/src/generic/animateg.cpp +++ b/src/generic/animateg.cpp @@ -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) -- 2.47.2