From 49d1d6124a4624c6c510d8dcc52f48a8d729c2ae Mon Sep 17 00:00:00 2001 From: elasota Date: Sat, 4 Apr 2020 17:46:38 -0400 Subject: [PATCH] Fix off-center high score screen at high resolutions --- GpApp/GameOver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GpApp/GameOver.cpp b/GpApp/GameOver.cpp index 2771501..82e2e88 100644 --- a/GpApp/GameOver.cpp +++ b/GpApp/GameOver.cpp @@ -102,10 +102,10 @@ void SetUpFinalScreen (void) do { GetLineOfText(tempStr, count, subStr); - offset = ((thisMac.constrainedScreen.right - thisMac.constrainedScreen.left) - - surface->MeasureString(subStr)) / 2; 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)); const Point textShadowPos = Point::Create(offset + 1, textDown + 33 + (count * 20));