summaryrefslogtreecommitdiff
path: root/gfx.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-27 09:55:38 +0000
committerDarkvater <darkvater@openttd.org>2006-10-27 09:55:38 +0000
commitd7d4f0192d68c01d8f8b33ec539ebd71bb7b5275 (patch)
tree16af27de6f4a6e7ee0ad6be75af010b9242404be /gfx.h
parentc09873681687172583bda5e92c4f5c53d141a0d2 (diff)
downloadopenttd-d7d4f0192d68c01d8f8b33ec539ebd71bb7b5275.tar.xz
(svn r6953) -Codechange: Change FormatStringLinebreaks in such a way that if no whitespace was seen
for the 'current line' of a certain maximum width, the string will be truncated instead of the old behaviour which just left it alone.
Diffstat (limited to 'gfx.h')
-rw-r--r--gfx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx.h b/gfx.h
index 0976f4a0e..0d63d2287 100644
--- a/gfx.h
+++ b/gfx.h
@@ -68,6 +68,7 @@ void GfxFillRect(int left, int top, int right, int bottom, int color);
void GfxDrawLine(int left, int top, int right, int bottom, int color);
BoundingRect GetStringBoundingBox(const char *str);
+uint32 FormatStringLinebreaks(char *str, int maxw);
void LoadStringWidthTable(void);
void DrawStringMultiCenter(int x, int y, StringID str, int maxw);
uint DrawStringMultiLine(int x, int y, StringID str, int maxw);