equal
deleted
inserted
replaced
164 int x = 3; |
164 int x = 3; |
165 int y = 16; |
165 int y = 16; |
166 bool selected = WP(w, fnd_d).index == i + w->vscroll.pos; |
166 bool selected = WP(w, fnd_d).index == i + w->vscroll.pos; |
167 |
167 |
168 if (_fund_gui.index[i + w->vscroll.pos] == INVALID_INDUSTRYTYPE) { |
168 if (_fund_gui.index[i + w->vscroll.pos] == INVALID_INDUSTRYTYPE) { |
169 DrawString(21, y + offset, STR_MANY_RANDOM_INDUSTRIES, selected ? TC_WHITE : TC_ORANGE); |
169 DrawStringTruncated(20, y + offset, STR_MANY_RANDOM_INDUSTRIES, selected ? TC_WHITE : TC_ORANGE, max_width - 25); |
170 continue; |
170 continue; |
171 } |
171 } |
172 const IndustrySpec *indsp = GetIndustrySpec(_fund_gui.index[i + w->vscroll.pos]); |
172 const IndustrySpec *indsp = GetIndustrySpec(_fund_gui.index[i + w->vscroll.pos]); |
173 |
173 |
174 /* Draw the name of the industry in white is selected, otherwise, in orange */ |
174 /* Draw the name of the industry in white is selected, otherwise, in orange */ |