summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-29 19:03:40 +0000
committerbjarni <bjarni@openttd.org>2006-09-29 19:03:40 +0000
commit7c863e67637e696d8880467920672490d41c2168 (patch)
tree7b4b07bebaeb6f4fe3f7832c33ae6e4f80f45f4c
parent821d2f14171e98540918b6113e1e8b1fefc87196 (diff)
downloadopenttd-7c863e67637e696d8880467920672490d41c2168.tar.xz
(svn r6581) -Fix r6562: [vehicle list windows] fixed an off by one issue when drawing the bottom row of buttons
-rw-r--r--vehicle_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index cd153df9d..410d4ec88 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -1271,7 +1271,7 @@ static void ResizeVehicleListWidgets(Window *w)
{
w->widget[VLW_WIDGET_AUTOREPLACE].right = w->widget[VLW_WIDGET_STOP_ALL].left - 1;
w->widget[VLW_WIDGET_SEND_TO_DEPOT].right = w->widget[VLW_WIDGET_AUTOREPLACE].right / 2;
- w->widget[VLW_WIDGET_AUTOREPLACE].left = w->widget[VLW_WIDGET_SEND_TO_DEPOT].right;
+ w->widget[VLW_WIDGET_AUTOREPLACE].left = w->widget[VLW_WIDGET_SEND_TO_DEPOT].right + 1;
}
static void CreateVehicleListWindow(Window *w)