From 3bb1f4217dcb229c2e064e9f0e1d58a757474cc0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 13 Oct 2009 20:19:34 +0000 Subject: (svn r17772) -Fix [FS#3264]: CJK languages don't have spaces, so for adding newlines (multi line strings) we need to (properly) handle the case when there are no spaces instead of truncating the string. --- src/gfx_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gfx_func.h') diff --git a/src/gfx_func.h b/src/gfx_func.h index 5dbef7917..c8ba4c0d6 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -115,7 +115,7 @@ void DrawBox(int x, int y, int dx1, int dy1, int dx2, int dy2, int dx3, int dy3) Dimension GetStringBoundingBox(const char *str); Dimension GetStringBoundingBox(StringID strid); -uint32 FormatStringLinebreaks(char *str, int maxw); +uint32 FormatStringLinebreaks(char *str, const char *last, int maxw); int GetStringHeight(StringID str, int maxw); Dimension GetStringMultiLineBoundingBox(StringID str, const Dimension &suggestion); void LoadStringWidthTable(); -- cgit v1.2.3-54-g00ecf