summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-13 20:19:34 +0000
committerrubidium <rubidium@openttd.org>2009-10-13 20:19:34 +0000
commit3bb1f4217dcb229c2e064e9f0e1d58a757474cc0 (patch)
treee06f35be311d13016ca78baa6bf5972cf9dff6de /src/gfx_func.h
parent313fb659433b0af187e04185d0b7875889548372 (diff)
downloadopenttd-3bb1f4217dcb229c2e064e9f0e1d58a757474cc0.tar.xz
(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.
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r--src/gfx_func.h2
1 files changed, 1 insertions, 1 deletions
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();