Fixed my centering code - I forgot that we always draw in terms of psp sizes, so when I'd toggle to doublesize / full screen, the centering code was way off for the menu as it was using screen resolution instead.

This commit is contained in:
wrenczes@gmail.com
2011-06-03 02:29:06 +00:00
parent bed971c84c
commit a4964f944c

View File

@@ -139,10 +139,10 @@ void SimpleMenu::Render()
mWidth += 2 * kHorizontalMargin;
if (mCenterHorizontal)
mX = (JRenderer::GetInstance()->GetActualWidth() - mWidth) / 2;
mX = (SCREEN_WIDTH_F - mWidth) / 2;
if (mCenterVertical)
mY = (JRenderer::GetInstance()->GetActualHeight() - mHeight) / 2;
mY = (SCREEN_HEIGHT_F - mHeight) / 2;
for (int i = 0; i < mCount; ++i)
{