From 11c6d30e77ab52b233b3a16a17054d2d65c8f410 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 26 Apr 2009 10:45:07 +0000 Subject: (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) --- src/gfx.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gfx.cpp') 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 (;;) { -- cgit v1.2.3-54-g00ecf