// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#if wxUSE_ANIMATIONCTRL
+#if wxUSE_ANIMATIONCTRL && !defined(__WXUNIVERSAL__)
#include "wx/animate.h"
EVT_TIMER(wxID_ANY, wxAnimationCtrl::OnTimer)
END_EVENT_TABLE()
-wxAnimationCtrl::wxAnimationCtrl()
+void wxAnimationCtrl::Init()
{
m_anim = NULL;
m_iter = NULL;
PostCreation(size);
SetBestSize(size);
- m_anim = NULL;
- m_iter = NULL;
- m_bPlaying = false;
if (anim != wxNullAnimation)
SetAnimation(anim);