summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2013-10-01 20:35:06 +0000
committeralberth <alberth@openttd.org>2013-10-01 20:35:06 +0000
commit999e76d30577eeca97a2d017a67a587759e7a528 (patch)
treefb5c062f209a3de23178b7c948fc55a5db7873bc /src
parent26dbdafeedf116bcdf75dfdaaf5a98760630cc13 (diff)
downloadopenttd-999e76d30577eeca97a2d017a67a587759e7a528.tar.xz
(svn r25805) -Fix[FS#5740]: Ensure the vehicle bar is high enough for the start/stop vehicle graphics (adf88).
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index d02546e90..3f0d486e1 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -2490,6 +2490,10 @@ public:
{
const Vehicle *v = Vehicle::Get(this->window_number);
switch (widget) {
+ case WID_VV_START_STOP:
+ size->height = max(size->height, max(GetSpriteSize(SPR_FLAG_VEH_STOPPED).height, GetSpriteSize(SPR_FLAG_VEH_RUNNING).height) + WD_IMGBTN_TOP + WD_IMGBTN_BOTTOM);
+ break;
+
case WID_VV_FORCE_PROCEED:
if (v->type != VEH_TRAIN) {
size->height = 0;