src/build_vehicle_gui.cpp
changeset 8845 e0eac76d3d16
parent 8834 ef15cacd6894
child 8848 96987946673f
equal deleted inserted replaced
8844:b4f9ff470b85 8845:e0eac76d3d16
   993 		int text_end = DrawVehiclePurchaseInfo(2, wi->top + 1, wi->right - wi->left - 2, bv->sel_engine);
   993 		int text_end = DrawVehiclePurchaseInfo(2, wi->top + 1, wi->right - wi->left - 2, bv->sel_engine);
   994 
   994 
   995 		if (text_end > wi->bottom) ExpandPurchaseInfoWidget(w, text_end - wi->bottom);
   995 		if (text_end > wi->bottom) ExpandPurchaseInfoWidget(w, text_end - wi->bottom);
   996 	}
   996 	}
   997 
   997 
   998 	DoDrawString(bv->descending_sort_order ? DOWNARROW : UPARROW, 69, 15, TC_BLACK);
   998 	DrawSortButtonState(w, BUILD_VEHICLE_WIDGET_SORT_ASSENDING_DESCENDING, bv->descending_sort_order ? SBS_DOWN : SBS_UP);
   999 }
   999 }
  1000 
  1000 
  1001 static void BuildVehicleClickEvent(Window *w, WindowEvent *e)
  1001 static void BuildVehicleClickEvent(Window *w, WindowEvent *e)
  1002 {
  1002 {
  1003 	buildvehicle_d *bv = &WP(w, buildvehicle_d);
  1003 	buildvehicle_d *bv = &WP(w, buildvehicle_d);