summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-06 09:50:43 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-06 09:50:43 +0000
commitfd3a596c82e9e6195eca900d32b5ac600e533e08 (patch)
tree7ffceb58f5d3353be92c770a5c27490d3dd4a507 /train_gui.c
parent138761e78e514b6f2c8680c79c4de628d3d1edcf (diff)
downloadopenttd-fd3a596c82e9e6195eca900d32b5ac600e533e08.tar.xz
(svn r3370) Improve alignment of text within total cargo tab of train view window
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c
index d2d493223..6c0620f98 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -1188,12 +1188,12 @@ static void DrawTrainDetailsWindow(Window *w)
SetDParam(1, v->date_of_last_service);
DrawString(x + 11, 141, _patches.servint_ispercent?STR_SERVICING_INTERVAL_PERCENT:STR_883C_SERVICING_INTERVAL_DAYS, 0);
- x = 1;
y = 57;
sel = w->vscroll.pos;
// draw the first 3 details tabs
if (det_tab != 3) {
+ x = 1;
for(;;) {
if (--sel < 0 && sel >= -6) {
int dx = 0;
@@ -1221,7 +1221,7 @@ static void DrawTrainDetailsWindow(Window *w)
SetDParam(1, tot_cargo[i][0]); // {CARGO} #2
SetDParam(2, i); // {SHORTCARGO} #1
SetDParam(3, tot_cargo[i][1]); // {SHORTCARGO} #2
- DrawString(x, y, STR_013F_TOTAL_CAPACITY, 0);
+ DrawString(x, y + 2, STR_013F_TOTAL_CAPACITY, 0);
}
} while (++i != NUM_CARGO);
}