simplify: only accept RectF

This commit is contained in:
Chris Danford
2004-09-22 02:20:50 +00:00
parent 6aaa517c62
commit 1ec8cbb208
4 changed files with 11 additions and 21 deletions
+1 -4
View File
@@ -781,10 +781,7 @@ void Sprite::ScaleToClipped( float fWidth, float fHeight )
Sprite::StopUsingCustomCoords();
// first find the correct zoom
Sprite::ScaleToCover( RectI(0, 0,
(int)fWidth,
(int)fHeight )
);
Sprite::ScaleToCover( RectF(0,0,fWidth,fHeight) );
// find which dimension is larger
bool bXDimNeedsToBeCropped = GetZoomedWidth() > fWidth+0.01;