From 78eccd05befe40a006974daf0b29dfb1b2382b65 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 12 Jul 2009 16:00:11 +0000 Subject: (svn r16799) -Codechange: When drawing articulated road vehicles in the vehicle details window, draw as many parts as the window fits instead of always up to a vehicle length of 80/8. --- src/vehicle_gui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vehicle_gui.h') diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h index fb3516ec4..3371bd16c 100644 --- a/src/vehicle_gui.h +++ b/src/vehicle_gui.h @@ -61,8 +61,8 @@ static inline bool ValidVLWFlags(uint16 flags) int DrawVehiclePurchaseInfo(int left, int right, int y, EngineID engine_number); -void DrawTrainImage(const Vehicle *v, int x, int y, VehicleID selection, int count, int skip); -void DrawRoadVehImage(const Vehicle *v, int x, int y, VehicleID selection, int count); +void DrawTrainImage(const Vehicle *v, int x, int y, VehicleID selection, int max_width, int skip); +void DrawRoadVehImage(const Vehicle *v, int x, int y, VehicleID selection, int max_width); void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection); void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selection); -- cgit v1.2.3-54-g00ecf