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) {