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

This commit is contained in:
rwjuk authored and Michael Steenbeek committed 2017-10-31 21:04:42 +01:00
1 parent af845beb61
commit 3125956b77
1 file changed
+1 -1
+1 -1
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;