1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix off-by-one error in placement of centred text

This commit is contained in:
rwjuk
2017-10-31 19:55:13 +00:00
committed by Michael Steenbeek
parent af845beb61
commit 3125956b77

View File

@@ -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;