summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-07-31 11:47:08 +0000
committeryexo <yexo@openttd.org>2010-07-31 11:47:08 +0000
commitd9bc65cdd873f2ea438a0d91d243766a72ba5ff7 (patch)
treeb1509c1cea499733c6c7e845c2a2c4d962fe0190 /src/gfx_func.h
parentd6eab96a220a9e3c896a4e78831228992446efd5 (diff)
downloadopenttd-d9bc65cdd873f2ea438a0d91d243766a72ba5ff7.tar.xz
(svn r20256) -Codechange: add a DrawStringMultiline variant that accepts const char* instead of StringID
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r--src/gfx_func.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h
index 2c7b33dc8..07c7c8130 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -112,6 +112,7 @@ DECLARE_ENUM_AS_BIT_SET(StringAlignment)
int DrawString(int left, int right, int top, const char *str, TextColour colour = TC_FROMSTRING, StringAlignment align = SA_LEFT, bool underline = false);
int DrawString(int left, int right, int top, StringID str, TextColour colour = TC_FROMSTRING, StringAlignment align = SA_LEFT, bool underline = false);
+int DrawStringMultiLine(int left, int right, int top, int bottom, const char *str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false);
int DrawStringMultiLine(int left, int right, int top, int bottom, StringID str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false);
void DrawCharCentered(uint32 c, int x, int y, TextColour colour);