Fix off-center high score screen at high resolutions

This commit is contained in:
elasota
2020-04-04 17:46:38 -04:00
parent 129396ef53
commit 49d1d6124a

View File

@@ -102,10 +102,10 @@ void SetUpFinalScreen (void)
do do
{ {
GetLineOfText(tempStr, count, subStr); GetLineOfText(tempStr, count, subStr);
offset = ((thisMac.constrainedScreen.right - thisMac.constrainedScreen.left) -
surface->MeasureString(subStr)) / 2;
surface->SetApplicationFont(12, PortabilityLayer::FontFamilyFlag_Bold); surface->SetApplicationFont(12, PortabilityLayer::FontFamilyFlag_Bold);
offset = ((thisMac.constrainedScreen.right - thisMac.constrainedScreen.left) -
surface->MeasureString(subStr)) / 2;
surface->SetForeColor(PortabilityLayer::RGBAColor::Create(0, 0, 0, 255)); surface->SetForeColor(PortabilityLayer::RGBAColor::Create(0, 0, 0, 255));
const Point textShadowPos = Point::Create(offset + 1, textDown + 33 + (count * 20)); const Point textShadowPos = Point::Create(offset + 1, textDown + 33 + (count * 20));