From 3125956b77ef26eef7b8dfeb166db828ff14ae65 Mon Sep 17 00:00:00 2001 From: rwjuk Date: Tue, 31 Oct 2017 19:55:13 +0000 Subject: [PATCH] Fix off-by-one error in placement of centred text --- src/openrct2/drawing/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/drawing/Text.cpp b/src/openrct2/drawing/Text.cpp index c6bdff7d79..800a5f6e27 100644 --- a/src/openrct2/drawing/Text.cpp +++ b/src/openrct2/drawing/Text.cpp @@ -90,7 +90,7 @@ static void DrawText(rct_drawpixelinfo * dpi, sint32 x, sint32 y, TextPaint * pa case TextAlignment::LEFT: break; case TextAlignment::CENTRE: - x -= width / 2; + x -= (width - 1) / 2; break; case TextAlignment::RIGHT: x -= width;