Add missing Sprite::SetCroppedSize to make it compile again.
This commit is contained in:
@@ -489,6 +489,11 @@ void Sprite::StopUsingCustomCoords()
|
||||
m_bUsingCustomTexCoords = false;
|
||||
}
|
||||
|
||||
void Sprite::SetCroppedSize( float fWidth, float fHeight )
|
||||
{
|
||||
m_fRememberedClipWidth = fWidth;
|
||||
m_fRememberedClipHeight = fHeight;
|
||||
}
|
||||
|
||||
void Sprite::ScaleToClipped( float fWidth, float fHeight )
|
||||
{
|
||||
@@ -592,4 +597,3 @@ bool Sprite::IsDiagonalBanner( int iWidth, int iHeight )
|
||||
/* A diagonal banner is a square. Give a couple pixels of leeway. */
|
||||
return iWidth >= 100 && abs(iWidth - iHeight) < 2;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
void SetTexCoordVelocity(float fVelX, float fVelY) { m_fTexCoordVelocityX = fVelX; m_fTexCoordVelocityY = fVelY; }
|
||||
// Scale the Sprite maintaining the aspect ratio so that it fits
|
||||
// within (fWidth,fHeight) and is clipped to (fWidth,fHeight).
|
||||
void SetCroppedSize( float fWidth, float fHeight );
|
||||
void ScaleToClipped( float fWidth, float fHeight );
|
||||
static bool IsDiagonalBanner( int iWidth, int iHeight );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user