From fecdeda7b1190274ee319cc9c58183ca1d07d439 Mon Sep 17 00:00:00 2001 From: belugas Date: Tue, 13 Nov 2007 15:41:09 +0000 Subject: (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. --- src/industry_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- cgit v1.2.3-70-g09d2