Changeset - r8543:3c9b1743a76e
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-02-12 12:54:51
peter1138@openttd.org
(svn r12121) -Fix [FS#1764]: Drop down item indexes are now an int instead of a byte (Yexo)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/widgets/dropdown.cpp
Show inline comments
 
@@ -40,25 +40,25 @@ static void DeleteDropDownList(DropDownL
 
	for (DropDownList::iterator it = list->begin(); it != list->end(); ++it) {
 
		DropDownListItem *item = *it;
 
		delete item;
 
	}
 
	delete list;
 
}
 

	
 
struct dropdown_d {
 
	WindowClass parent_wnd_class;
 
	WindowNumber parent_wnd_num;
 
	byte parent_button;
 
	DropDownList *list;
 
	byte selected_index;
 
	int selected_index;
 
	byte click_delay;
 
	bool drag_mode;
 
	int scrolling;
 
};
 
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(dropdown_d));
 

	
 
static const Widget _dropdown_menu_widgets[] = {
 
{      WWT_PANEL,   RESIZE_NONE,     0,     0, 0,     0, 0, 0x0, STR_NULL},
 
{  WWT_SCROLLBAR,   RESIZE_NONE,     0,     0, 0,     0, 0, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST},
 
{   WIDGETS_END},
 
};
 

	
0 comments (0 inline, 0 general)