(svn r21560) -Codechange: Declare DrawVehicleImage in its header.

This commit is contained in:
terkhen 2010-12-21 13:50:31 +00:00
parent 53120a566c
commit d92f29b822
2 changed files with 3 additions and 1 deletions

View File

@ -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 selection Selected vehicle to draw a frame around
* @param skip Number of pixels to skip at the front (for scrolling) * @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) { switch (v->type) {
case VEH_TRAIN: DrawTrainImage(Train::From(v), left, right, y, selection, skip); break; case VEH_TRAIN: DrawTrainImage(Train::From(v), left, right, y, selection, skip); break;

View File

@ -97,4 +97,6 @@ void StartStopVehicle(const Vehicle *v, bool texteffect);
Vehicle *CheckClickOnVehicle(const struct ViewPort *vp, int x, int y); 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 */ #endif /* VEHICLE_GUI_H */