X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72045d5768a126191a907bc640c28e81a11afdd6..de3cfa6e8ca8957b737d027e00a7050dd5671262:/src/common/animatecmn.cpp?ds=inline diff --git a/src/common/animatecmn.cpp b/src/common/animatecmn.cpp index d3b69867f5..e9c0b8678a 100644 --- a/src/common/animatecmn.cpp +++ b/src/common/animatecmn.cpp @@ -20,16 +20,21 @@ #if wxUSE_ANIMATIONCTRL #include "wx/animate.h" +#include "wx/bitmap.h" const wxChar wxAnimationCtrlNameStr[] = wxT("animationctrl"); // global object wxAnimation wxNullAnimation; -//wxIMPLEMENT_HANDLER_LIST_MANAGER(wxAnimation, IMPLEMENT_ABSTRACT_CLASS(wxAnimationBase, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxAnimationCtrlBase, wxControl) +void wxAnimationCtrlBase::SetInactiveBitmap(const wxBitmap &bmp) +{ + m_bmpStatic = bmp; + m_bmpStatic.UnShare(); +} #endif // wxUSE_ANIMATIONCTRL