diff options
author | Darkvater <darkvater@openttd.org> | 2005-07-17 17:16:35 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-07-17 17:16:35 +0000 |
commit | dfc3695ad76971bb90c0626680d2d0ae6b222f10 (patch) | |
tree | 69480eb07493adf370189738a1b78b62d4ce8c54 | |
parent | f8b7b107d868d2e05a8c36df191917d7e9b1ca80 (diff) | |
download | openttd-dfc3695ad76971bb90c0626680d2d0ae6b222f10.tar.xz |
(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.
-rw-r--r-- | gfx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -298,7 +298,7 @@ static int TruncateString(char *str, uint maxw) // Remember the last position where three dots fit. if (w + ddd < maxw) { ddd_w = w + ddd; - ddd_pos = str; + ddd_pos = str + 1; } } |