From a4964f944cce20a50b412204ef7548a3359daa4c Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Fri, 3 Jun 2011 02:29:06 +0000 Subject: [PATCH] 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. --- projects/mtg/src/SimpleMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/mtg/src/SimpleMenu.cpp b/projects/mtg/src/SimpleMenu.cpp index efebfe375..2584b9f79 100644 --- a/projects/mtg/src/SimpleMenu.cpp +++ b/projects/mtg/src/SimpleMenu.cpp @@ -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) {