Skip to content

Commit

Permalink
fix building with deprecated methods off
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Apr 13, 2023
1 parent de57cb7 commit b38ec2a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions vstgui/lib/controls/cautoanimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,18 @@ CAutoAnimation::CAutoAnimation (const CRect& size, IControlListener* listener, i
setMin (0.f);
setMax ((float)(totalHeightOfBitmap - (heightOfOneImage + 1.)));
}
#endif

//------------------------------------------------------------------------
void CAutoAnimation::setBitmapOffset (const CPoint& off)
{
offset = off;
invalid ();
}

//------------------------------------------------------------------------
CPoint CAutoAnimation::getBitmapOffset () const { return offset; }

#endif // VSTGUI_ENABLE_DEPRECATED_METHODS

//------------------------------------------------------------------------
CAutoAnimation::CAutoAnimation (const CAutoAnimation& v)
Expand Down Expand Up @@ -280,14 +291,4 @@ void CAutoAnimation::setAnimationTime (uint32_t animationTime)
//------------------------------------------------------------------------
uint32_t CAutoAnimation::getAnimationTime () const { return animationFrameTime; }

//------------------------------------------------------------------------
void CAutoAnimation::setBitmapOffset (const CPoint& off)
{
offset = off;
invalid ();
}

//------------------------------------------------------------------------
CPoint CAutoAnimation::getBitmapOffset () const { return offset; }

} // VSTGUI

0 comments on commit b38ec2a

Please sign in to comment.