summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-04-10 11:59:18 +0000
committerpeter1138 <peter1138@openttd.org>2008-04-10 11:59:18 +0000
commit63116691a9ff1eaa541a350fcd11a474dac4a095 (patch)
tree22d8673a5ad50d7dfc22fdfba4faecd9454c091b
parent6379c30d267215da7c1371f4d5688cd92831496f (diff)
downloadopenttd-63116691a9ff1eaa541a350fcd11a474dac4a095.tar.xz
(svn r12651) -Fix (r12644) [FS#1915]: Dropdown widget width should be one pixel less than window width, not one more.
-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 70eb81b64..61179365b 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -258,7 +258,7 @@ void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, u
_dropdown_menu_widgets);
dw->widget[0].color = wi->color;
- dw->widget[0].right = width + 1;
+ dw->widget[0].right = width - 1;
dw->widget[0].bottom = height - 1;
dw->SetWidgetHiddenState(1, !scroll);