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;
}