changeset 13244:ef86ddf0e0a9 draft

(svn r17753) -Fix (r17750): Expenses amounts were printed two pixels too low.
author alberth <alberth@openttd.org>
date Sat, 10 Oct 2009 13:19:38 +0000
parents ee090d3956ab
children 507592717f3a
files src/company_gui.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -191,13 +191,13 @@
 			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;
 		}
 	}