summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-10-10 13:19:38 +0000
committeralberth <alberth@openttd.org>2009-10-10 13:19:38 +0000
commit2e2f3b1502ed5a0ea0339a047800a43e4f096f98 (patch)
tree0ecc4cc22bce64894ac6224f58e2ac8325da07c5 /src
parent4ab569544b34cda1feb23528bc07aa6e5ae4776e (diff)
downloadopenttd-2e2f3b1502ed5a0ea0339a047800a43e4f096f98.tar.xz
(svn r17753) -Fix (r17750): Expenses amounts were printed two pixels too low.
Diffstat (limited to 'src')
-rw-r--r--src/company_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index f57b989c3..f907115fc 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -191,13 +191,13 @@ static void DrawYearColumn(const Rect &r, int year, const Money (*tbl)[EXPENSES_
subtotal = 0;
GfxFillRect(r.left, y, r.right, y, 215);
y += EXP_LINESPACE;
- DrawPrice(cost, r.left, r.right, y + EXP_LINESPACE);
+ DrawPrice(cost, r.left, r.right, y);
y += FONT_HEIGHT_NORMAL + EXP_BLOCKSPACE;
} else {
Money cost = (*tbl)[et];
subtotal += cost;
sum += cost;
- if (cost != 0) DrawPrice(cost, r.left, r.right, y + EXP_LINESPACE);
+ if (cost != 0) DrawPrice(cost, r.left, r.right, y);
y += FONT_HEIGHT_NORMAL;
}
}