diff --git a/projects/mtg/src/SimpleMenu.cpp b/projects/mtg/src/SimpleMenu.cpp index 874a43cb3..211e9aa3c 100644 --- a/projects/mtg/src/SimpleMenu.cpp +++ b/projects/mtg/src/SimpleMenu.cpp @@ -137,8 +137,12 @@ void SimpleMenu::Render() float width = (static_cast (mObjects[i]))->GetEnlargedWidth() + 15; if (mWidth < width) mWidth = width; } + + float scaleFactor = titleFont->GetScale(); + titleFont->SetScale(SCALE_NORMAL); if ((!title.empty()) && (mWidth < titleFont->GetStringWidth(title.c_str()))) mWidth = titleFont->GetStringWidth(title.c_str()); + titleFont->SetScale(scaleFactor); mWidth += 2 * kHorizontalMargin; if (mCenterHorizontal) @@ -249,7 +253,8 @@ bool SimpleMenu::CheckUserInput(JButton key) } else if (y > mHeight) // this will scroll downwards in a list. { - n = mCurr + 1; + if (mCurr < mCount-1) + n = mCurr + 1; } } }