summaryrefslogtreecommitdiff
path: root/src/widgets/dropdown_type.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-08-25 16:07:10 +0000
committerpeter1138 <peter1138@openttd.org>2008-08-25 16:07:10 +0000
commitcf52b683c0a478b113bd25893f49554906edb32f (patch)
tree1c9cac48ba290d508e4fe24d4954bff973041075 /src/widgets/dropdown_type.h
parent621a9b647afce6a9d8172bea6c8f781f5151bb29 (diff)
downloadopenttd-cf52b683c0a478b113bd25893f49554906edb32f.tar.xz
(svn r14168) -Codechange: Make dropdown 'auto_width' a separate parameter, so that a minimum width can be specified.
Diffstat (limited to 'src/widgets/dropdown_type.h')
-rw-r--r--src/widgets/dropdown_type.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets/dropdown_type.h b/src/widgets/dropdown_type.h
index f3a5f7976..086e5717d 100644
--- a/src/widgets/dropdown_type.h
+++ b/src/widgets/dropdown_type.h
@@ -70,11 +70,10 @@ typedef std::list<DropDownListItem *> DropDownList;
* @param button The widget within the parent window that is used to determine
* the list's location.
* @param width Override the width determined by the selected widget.
- * If UINT_MAX then the width is determined by the widest item
- * in the list.
+ * @param auto_width Maximum width is determined by the widest item in the list.
* @param instant_close Set to true if releasing mouse button should close the
* list regardless of where the cursor is.
*/
-void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, uint width = 0, bool instant_close = false);
+void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, uint width = 0, bool auto_width = false, bool instant_close = false);
#endif /* WIDGETS_DROPDOWN_TYPE_H */