]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/animateg.cpp
Wine fixes
[wxWidgets.git] / src / generic / animateg.cpp
index 8daee51ebf0e145887a69ccc79c42853bf8069d3..4f793eac482f1272336ad7e8f19d8a9d8bdcdbfc 100644 (file)
@@ -373,15 +373,11 @@ bool wxAnimationCtrl::Play(bool looped)
     if (!m_animation.IsOk())
         return false;
 
-    int oldframe = m_currentFrame;
     m_looped = looped;
     m_currentFrame = 0;
 
-    // small optimization: if the back store was already updated to the
-    // first frame, don't rebuild it
-    if (oldframe != 0)
-        if (!RebuildBackingStoreUpToFrame(0))
-            return false;
+    if (!RebuildBackingStoreUpToFrame(0))
+        return false;
 
     m_isPlaying = true;