timer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34307
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
PlayFrame(GetCurrentFrame(), * GetWindow(), GetPosition());
// Set the timer for the next frame
PlayFrame(GetCurrentFrame(), * GetWindow(), GetPosition());
// Set the timer for the next frame
- m_timer.Start(GetDelay(GetCurrentFrame()));
+ int delay = GetDelay(GetCurrentFrame());
+ if (delay == 0)
+ delay = 1; // 0 is invalid timeout for wxTimer.
+
+ m_timer.Start(delay);