From 7311b305e8901cce3a1f646f0bc41f4de79725bf Mon Sep 17 00:00:00 2001 From: bjarni Date: Tue, 10 Oct 2006 10:04:09 +0000 Subject: (svn r6718) -Codechange: added function to get the line height for a vehicle type -Fix r6513: [depot window] fixed incorrect line height for large ships -Fix r6513: [depot window] fixed incorrect resizing of the sell button --- vehicle_gui.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vehicle_gui.h') diff --git a/vehicle_gui.h b/vehicle_gui.h index e13a95677..0b27bbd24 100644 --- a/vehicle_gui.h +++ b/vehicle_gui.h @@ -68,4 +68,9 @@ static inline void DrawVehicleImage(const Vehicle *v, int x, int y, int count, i } } +static inline byte GetVehicleListHeight(byte type) +{ + return (type == VEH_Train || type == VEH_Road) ? 14 : 24; +} + #endif /* VEHICLE_GUI_H */ -- cgit v1.2.3-70-g09d2