Build fixage.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4128 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2011-01-23 17:48:46 +00:00
parent e5bcbdc5b7
commit 68c0a3c5b3

View File

@ -872,14 +872,14 @@ static OOTextureSprite *NewTextureSpriteWithDescriptor(NSDictionary *descriptor)
if (haveWidth)
{
// Width specified, but not height; preserve aspect ratio.
CGFloat ratio = originalDimensions.height / originalDimensions.width;
OOCGFloat ratio = originalDimensions.height / originalDimensions.width;
size.width = specifiedWidth;
size.height = ratio * size.width;
}
else if (haveHeight)
{
// Height specified, but not width; preserve aspect ratio.
CGFloat ratio = originalDimensions.width / originalDimensions.height;
OOCGFloat ratio = originalDimensions.width / originalDimensions.height;
size.height = specifiedHeight;
size.width = ratio * size.height;
}