]> git.saurik.com Git - wxWidgets.git/commitdiff
call Refresh() to make animation work under Mac
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Oct 2006 21:15:00 +0000 (21:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Oct 2006 21:15:00 +0000 (21:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/animateg.cpp

index 90cb3cae6a0416ed63b1124319505ca426bdf88b..4a0ac66c9a7206f7adbe2092afe458a89ded83c0 100644 (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)