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:
parent
e5bcbdc5b7
commit
68c0a3c5b3
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user