summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
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
commitd721227adee148d06a4b037bd49cc7bc87033ed9 (patch)
tree7b4b07bebaeb6f4fe3f7832c33ae6e4f80f45f4c /vehicle_gui.c
parentdddc3e0fd1f957cf02613353f71a07fc6adc8949 (diff)
downloadopenttd-d721227adee148d06a4b037bd49cc7bc87033ed9.tar.xz
(svn r6581) -Fix r6562: [vehicle list windows] fixed an off by one issue when drawing the bottom row of buttons
Diffstat (limited to 'vehicle_gui.c')
-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)