Changed screen width calculations to subtract 1 if the result is odd.
This commit is contained in:
@@ -35,7 +35,11 @@ float ScreenDimensions::GetScreenWidth()
|
||||
if( fAspect > THEME_NATIVE_ASPECT )
|
||||
fScale = fAspect / THEME_NATIVE_ASPECT;
|
||||
ASSERT( fScale >= 1 );
|
||||
return (float) ceilf(THEME_SCREEN_WIDTH * fScale);
|
||||
// ceilf causes the width to come out odd when it shouldn't.
|
||||
// 576 * 1.7778 = 1024.0128, which is rounded to 1025. -Kyz
|
||||
int width= (int)ceilf(THEME_SCREEN_WIDTH * fScale);
|
||||
width-= width % 2;
|
||||
return (float)width;
|
||||
}
|
||||
|
||||
float ScreenDimensions::GetScreenHeight()
|
||||
|
||||
Reference in New Issue
Block a user