train_gui.c
changeset 5124 2ca62776430e
parent 5106 0adf2da2da87
child 5163 459b243f8413
equal deleted inserted replaced
5123:291651cb3a18 5124:2ca62776430e
   662 {
   662 {
   663 	Window *w;
   663 	Window *w;
   664 
   664 
   665 	DeleteWindowById(WC_BUILD_VEHICLE, tile);
   665 	DeleteWindowById(WC_BUILD_VEHICLE, tile);
   666 
   666 
   667 	w = AllocateWindowDesc(&_new_rail_vehicle_desc);
   667 	w = AllocateWindowDescFront(&_new_rail_vehicle_desc, tile);
   668 	w->window_number = tile;
       
   669 	w->vscroll.cap = 8;
   668 	w->vscroll.cap = 8;
   670 	w->widget[BUILD_TRAIN_WIDGET_LIST].data = (w->vscroll.cap << 8) + 1;
   669 	w->widget[BUILD_TRAIN_WIDGET_LIST].data = (w->vscroll.cap << 8) + 1;
   671 
   670 
   672 	w->resize.step_height = 14;
   671 	w->resize.step_height = 14;
   673 	w->resize.height = w->height - 14 * 4; // Minimum of 4 vehicles in the display
   672 	w->resize.height = w->height - 14 * 4; // Minimum of 4 vehicles in the display