summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-11-13 15:41:09 +0000
committerbelugas <belugas@openttd.org>2007-11-13 15:41:09 +0000
commita0d0dcb78d8cab336899f85de0236bba0232522b (patch)
treed80935046c2e51f29c46fa2bdf5b78d3466f8fbc /src
parent7d9d4e789b7de463d9b0957ba381e88ddddee659 (diff)
downloadopenttd-a0d0dcb78d8cab336899f85de0236bba0232522b.tar.xz
(svn r11427) -Fix: Forgot to Truncate the string "Many Random Industries" in the funding industry window. In some languages, it gets drawn outside of the gui.
Diffstat (limited to 'src')
-rw-r--r--src/industry_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 83e29ea91..c2b73e815 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -166,7 +166,7 @@ static void BuildDynamicIndustryWndProc(Window *w, WindowEvent *e)
bool selected = WP(w, fnd_d).index == i + w->vscroll.pos;
if (_fund_gui.index[i + w->vscroll.pos] == INVALID_INDUSTRYTYPE) {
- DrawString(21, y + offset, STR_MANY_RANDOM_INDUSTRIES, selected ? TC_WHITE : TC_ORANGE);
+ DrawStringTruncated(20, y + offset, STR_MANY_RANDOM_INDUSTRIES, selected ? TC_WHITE : TC_ORANGE, max_width - 25);
continue;
}
const IndustrySpec *indsp = GetIndustrySpec(_fund_gui.index[i + w->vscroll.pos]);