summaryrefslogtreecommitdiff
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
commitcbad2dad332c710c457faca022755723bc030d61 (patch)
tree69480eb07493adf370189738a1b78b62d4ce8c54
parent3f8ba76b2fcba7a8b25eebca5ac24a723574dc59 (diff)
downloadopenttd-cbad2dad332c710c457faca022755723bc030d61.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.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;
}
}