summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-07-17 17:16:35 +0000
committerDarkvater <darkvater@openttd.org>2005-07-17 17:16:35 +0000
commitdfc3695ad76971bb90c0626680d2d0ae6b222f10 (patch)
tree69480eb07493adf370189738a1b78b62d4ce8c54 /gfx.c
parentf8b7b107d868d2e05a8c36df191917d7e9b1ca80 (diff)
downloadopenttd-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.
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx.c b/gfx.c
index fd5f48ddb..57b92c15d 100644
--- a/gfx.c
+++ b/gfx.c
@@ -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;
}
}