mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r2614) - Fix: Trunctuate function used one less character than it was supposed to. Because of this real width and reported width didn't correspond with eachother.
This commit is contained in:
parent
f8b7b107d8
commit
dfc3695ad7
2
gfx.c
2
gfx.c
@ -298,7 +298,7 @@ static int TruncateString(char *str, uint maxw)
|
|||||||
// Remember the last position where three dots fit.
|
// Remember the last position where three dots fit.
|
||||||
if (w + ddd < maxw) {
|
if (w + ddd < maxw) {
|
||||||
ddd_w = w + ddd;
|
ddd_w = w + ddd;
|
||||||
ddd_pos = str;
|
ddd_pos = str + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user