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/industry_gui.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/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index b04a85736..73a391052 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -226,7 +226,7 @@ public: } if (this->selected_type == INVALID_INDUSTRYTYPE) { - DrawStringMultiLine(x_str, y_str, STR_RANDOM_INDUSTRIES_TIP, max_width, wi->bottom - wi->top - 40); + DrawStringMultiLine(x_str, x_str + max_width, y_str, wi->bottom, STR_RANDOM_INDUSTRIES_TIP); return; } @@ -280,7 +280,7 @@ public: str = this->text[this->selected_index]; if (str != STR_NULL && str != STR_UNDEFINED) { SetDParam(0, str); - DrawStringMultiLine(x_str, y_str, STR_JUST_STRING, max_width, wi->bottom - wi->top - 40); + DrawStringMultiLine(x_str, x_str + max_width, y_str, wi->bottom, STR_JUST_STRING); } } @@ -551,7 +551,7 @@ public: PrepareTextRefStackUsage(6); /* Use all the available space left from where we stand up to the end of the window */ - y += DrawStringMultiLine(2, y, message, wi->right - wi->left - 4, -1); + y = DrawStringMultiLine(wi->left + 2, wi->right -2, y, wi->bottom, message); StopTextRefStackUsage(); } } |