diff options
author | terkhen <terkhen@openttd.org> | 2010-12-21 13:50:31 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-12-21 13:50:31 +0000 |
commit | d92f29b8221e06d24df0416ae1609e8588e0b2c3 (patch) | |
tree | 74d0e91027f3785e96d71877c327aa3bf2a09d7d /src | |
parent | 53120a566ce933b74bf4039e0b7e7e4cca3af28b (diff) | |
download | openttd-d92f29b8221e06d24df0416ae1609e8588e0b2c3.tar.xz |
(svn r21560) -Codechange: Declare DrawVehicleImage in its header.
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle_gui.cpp | 2 | ||||
-rw-r--r-- | src/vehicle_gui.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 8ca29317f..7ca9f6fc1 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -994,7 +994,7 @@ static void DrawSmallOrderList(const Vehicle *v, int left, int right, int y, Veh * @param selection Selected vehicle to draw a frame around * @param skip Number of pixels to skip at the front (for scrolling) */ -static void DrawVehicleImage(const Vehicle *v, int left, int right, int y, VehicleID selection, int skip) +void DrawVehicleImage(const Vehicle *v, int left, int right, int y, VehicleID selection, int skip) { switch (v->type) { case VEH_TRAIN: DrawTrainImage(Train::From(v), left, right, y, selection, skip); break; diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h index 5237babfd..4f29b2a64 100644 --- a/src/vehicle_gui.h +++ b/src/vehicle_gui.h @@ -97,4 +97,6 @@ void StartStopVehicle(const Vehicle *v, bool texteffect); Vehicle *CheckClickOnVehicle(const struct ViewPort *vp, int x, int y); +void DrawVehicleImage(const Vehicle *v, int left, int right, int y, VehicleID selection, int skip); + #endif /* VEHICLE_GUI_H */ |