src/depot_gui.cpp
changeset 9273 35e0224ea8f1
parent 9232 0a94fea18c79
child 9274 42b67e65f1c2
equal deleted inserted replaced
9272:e64b518a7b54 9273:35e0224ea8f1
   363 			assert(depot != NULL);
   363 			assert(depot != NULL);
   364 
   364 
   365 			SetDParam(0, depot->town_index);
   365 			SetDParam(0, depot->town_index);
   366 		}
   366 		}
   367 
   367 
   368 		DrawWindowWidgets(w);
   368 		w->DrawWidgets();
   369 
   369 
   370 		num = this->vscroll.pos * boxes_in_each_row;
   370 		num = this->vscroll.pos * boxes_in_each_row;
   371 		maxval = min(this->engine_count, num + (rows_in_display * boxes_in_each_row));
   371 		maxval = min(this->engine_count, num + (rows_in_display * boxes_in_each_row));
   372 
   372 
   373 		for (x = 2, y = 15; num < maxval; y += this->resize.step_height, x = 2) { // Draw the rows
   373 		for (x = 2, y = 15; num < maxval; y += this->resize.step_height, x = 2) { // Draw the rows