From dfc3695ad76971bb90c0626680d2d0ae6b222f10 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 17 Jul 2005 17:16:35 +0000 Subject: (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. --- gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3-70-g09d2