Missed else/if for scaling.

This commit is contained in:
emb 2015-02-09 20:19:09 -06:00
parent 6184e89e81
commit 4c67820012

View File

@ -92,7 +92,7 @@ float ViewInfo::GetHeight() const
{
height = MaxHeight;
}
if(width > MaxWidth && height <= MaxHeight)
else if(width > MaxWidth && height <= MaxHeight)
{
height = scaleW * height;
}
@ -137,7 +137,7 @@ float ViewInfo::GetWidth() const
{
width = MaxWidth;
}
if(height > MaxHeight && width <= MaxWidth)
else if(height > MaxHeight && width <= MaxWidth)
{
width = scaleH * width;
}