Add missing Sprite::SetCroppedSize to make it compile again.

This commit is contained in:
Sean Burke
2003-07-03 17:31:00 +00:00
parent c9a6e30621
commit ff6af2f72d
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -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;
}
+1
View File
@@ -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 );