forked from rosebudai/OpenRCT2-Web
Fix off-by-one error in placement of centred text
This commit is contained in:
1 parent
af845beb61
commit
3125956b77
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user