summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2011-10-11 13:13:20 +0000
committerpeter1138 <peter1138@openttd.org>2011-10-11 13:13:20 +0000
commit30d9de9db56c579e54b4d834e36e025b1e093d67 (patch)
tree5b2461f1afc7bea043cf3bd1e8d220d6fdb5967a
parent50d15412705fa8ffb37e53afd798595e74073f0d (diff)
downloadopenttd-30d9de9db56c579e54b4d834e36e025b1e093d67.tar.xz
(svn r23018) -Fix (r14004): Pass bottom of dropdown item rather than bottom of dropdown window.
-rw-r--r--src/widgets/dropdown.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp
index 56654e6be..d3dbd3bd8 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -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);