Mercurial > hg > openttd
changeset 18189:85a146092746 draft
(svn r23018) -Fix (r14004): Pass bottom of dropdown item rather than bottom of dropdown window.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Tue, 11 Oct 2011 13:13:20 +0000 |
parents | ad7b72f7cd8e |
children | 7a9e0f93b08a |
files | src/widgets/dropdown.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -250,7 +250,7 @@ bool selected = (this->selected_index == item->result); if (selected) GfxFillRect(r.left + 2, y, r.right - 1, y + item_height - 1, PC_BLACK); - item->Draw(r.left, r.right, y, r.bottom, selected, colour); + item->Draw(r.left, r.right, y, y + item_height, selected, colour); if (item->masked) { GfxFillRect(r.left + 1, y, r.right - 1, y + item_height - 1, _colour_gradient[colour][5], FILLRECT_CHECKER);