diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 23:45:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 23:45:34 +0000 |
commit | d837fc4d03bc2cab4ffcae9c8fb81d4226e30913 (patch) | |
tree | 7735a9fe4858662401465187eed99bbd8c49f169 /src/gfx.cpp | |
parent | 676bf31e82fb666feee5cde9ffc65bdc7a5070a7 (diff) | |
download | openttd-d837fc4d03bc2cab4ffcae9c8fb81d4226e30913.tar.xz |
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r-- | src/gfx.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp index 467434973..7398fa018 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -631,7 +631,7 @@ int DrawStringMultiLine(int left, int right, int top, int bottom, StringID str, if (maxh != -1 && (int)total_height > maxh) { /* Check there's room enough for at least one line. */ - if (maxh < mt) return 0; + if (maxh < mt) return top; num = maxh / mt - 1; total_height = (num + 1) * mt; @@ -674,11 +674,6 @@ void DrawStringMultiCenter(int x, int y, StringID str, int maxw) DrawStringMultiLine(x - maxw / 2, x + maxw / 2, y, INT32_MAX, str, SA_CENTER); } -uint DrawStringMultiLine(int x, int y, StringID str, int maxw, int maxh) -{ - return DrawStringMultiLine(x, x + maxw, y, y + maxh, str, SA_LEFT) - y; -} - /** Return the string dimension in pixels. The height and width are returned * in a single Dimension value. TINYFONT, BIGFONT modifiers are only * supported as the first character of the string. The returned dimensions |