(svn r23018) -Fix (r14004): Pass bottom of dropdown item rather than bottom of dropdown window.

This commit is contained in:
peter1138 2011-10-11 13:13:20 +00:00
parent 50d1541270
commit 30d9de9db5
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ struct DropdownWindow : Window {
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);