File diff r27250:2db9d19db72d → r27251:32eeeb197cbd
src/vehicle_gui.cpp
Show inline comments
 
@@ -360,13 +360,13 @@ Dimension BaseVehicleListWindow::GetActi
 

	
 
	return d;
 
}
 

	
 
void BaseVehicleListWindow::OnInit()
 
{
 
	this->order_arrow_width = GetStringBoundingBox(STR_TINY_RIGHT_ARROW).width;
 
	this->order_arrow_width = GetStringBoundingBox(STR_JUST_RIGHT_ARROW, FS_SMALL).width;
 
	this->SetCargoFilterArray();
 
}
 

	
 
/**
 
 * Display the Action dropdown window.
 
 * @param show_autoreplace If true include the autoreplace item.
 
@@ -1557,13 +1557,13 @@ static void DrawSmallOrderList(const Veh
 
	int l_offset = rtl ? 0 : order_arrow_width;
 
	int r_offset = rtl ? order_arrow_width : 0;
 
	int i = 0;
 
	VehicleOrderID oid = start;
 

	
 
	do {
 
		if (oid == v->cur_real_order_index) DrawString(left, right, y, STR_TINY_RIGHT_ARROW, TC_BLACK);
 
		if (oid == v->cur_real_order_index) DrawString(left, right, y, STR_JUST_RIGHT_ARROW, TC_BLACK, SA_LEFT, false, FS_SMALL);
 

	
 
		if (order->IsType(OT_GOTO_STATION)) {
 
			SetDParam(0, order->GetDestination());
 
			DrawString(left + l_offset, right - r_offset, y, STR_STATION_NAME, TC_BLACK, SA_LEFT, false, FS_SMALL);
 

	
 
			y += FONT_HEIGHT_SMALL;