mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15953) -Fix [FS#2783]: left - right != width causing strings to be truncated too early
This commit is contained in:
parent
bdf05e797d
commit
171f98d523
|
@ -403,7 +403,7 @@ static int DrawString(int left, int right, int top, char *str, const char *last,
|
|||
int initial_right = right;
|
||||
int initial_top = top;
|
||||
|
||||
if (truncate) TruncateString(str, right - left);
|
||||
if (truncate) TruncateString(str, right - left + 1);
|
||||
|
||||
/*
|
||||
* To support SETX and SETXY properly with RTL languages we have to
|
||||
|
|
Loading…
Reference in New Issue