// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
- #pragma implementation "animate.h"
-#endif
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
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);
m_currentFrame ++;