From d837fc4d03bc2cab4ffcae9c8fb81d4226e30913 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 21 Mar 2009 23:45:34 +0000 Subject: (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. --- src/gfx.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/gfx.cpp') 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 -- cgit v1.2.3-54-g00ecf