summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-26 10:45:07 +0000
committerrubidium <rubidium@openttd.org>2009-04-26 10:45:07 +0000
commit11c6d30e77ab52b233b3a16a17054d2d65c8f410 (patch)
tree94a31f7394b1807c0e08ec0094bd77dd6abe09b2 /src/gfx.cpp
parentfc63e376168adb7b12d9eca43c3bac3751297c3a (diff)
downloadopenttd-11c6d30e77ab52b233b3a16a17054d2d65c8f410.tar.xz
(svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter)
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 48f559ce0..f67698dd6 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -677,10 +677,11 @@ int GetStringHeight(StringID str, int maxw)
* @param align The alignment of the string when drawing left-to-right. In the
* case a right-to-left language is chosen this is inverted so it
* will be drawn in the right direction.
+ * @param underline Whether to underline all strings
*
* @return The bottom to where we have written.
*/
-int DrawStringMultiLine(int left, int right, int top, int bottom, StringID str, StringAlignment align)
+int DrawStringMultiLine(int left, int right, int top, int bottom, StringID str, TextColour colour, StringAlignment align, bool underline)
{
int maxw = right - left;
int maxh = bottom - top;
@@ -708,7 +709,7 @@ int DrawStringMultiLine(int left, int right, int top, int bottom, StringID str,
for (;;) {
char buf2[DRAW_STRING_BUFFER];
strecpy(buf2, src, lastof(buf2));
- DrawString(left, right, y, buf2, lastof(buf2), TC_FROMSTRING, align, false, false);
+ DrawString(left, right, y, buf2, lastof(buf2), colour, align, underline, false);
_cur_fontsize = _last_fontsize;
for (;;) {