src/industry_gui.cpp
changeset 7877 184477162db7
parent 7824 5a63d41b59ea
child 7889 e74ce8853ba7
equal deleted inserted replaced
7876:da2a6603bac5 7877:184477162db7
   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 */