mirror of https://github.com/OpenTTD/OpenTTD
(svn r17753) -Fix (r17750): Expenses amounts were printed two pixels too low.
parent
4ab569544b
commit
2e2f3b1502
|
@ -191,13 +191,13 @@ static void DrawYearColumn(const Rect &r, int year, const Money (*tbl)[EXPENSES_
|
||||||
subtotal = 0;
|
subtotal = 0;
|
||||||
GfxFillRect(r.left, y, r.right, y, 215);
|
GfxFillRect(r.left, y, r.right, y, 215);
|
||||||
y += EXP_LINESPACE;
|
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;
|
y += FONT_HEIGHT_NORMAL + EXP_BLOCKSPACE;
|
||||||
} else {
|
} else {
|
||||||
Money cost = (*tbl)[et];
|
Money cost = (*tbl)[et];
|
||||||
subtotal += cost;
|
subtotal += cost;
|
||||||
sum += 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;
|
y += FONT_HEIGHT_NORMAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue