From 6124ee09747fdac32a0b3af8616fd7813e0fe746 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 14 Nov 2005 08:42:45 +0000 Subject: (svn r3178) - Codechange: move static _dropdown_* vars into the window custom data, giving var1 and var2 more meaningful names. --- window.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'window.h') diff --git a/window.h b/window.h index 6c0a60793..72886b369 100644 --- a/window.h +++ b/window.h @@ -452,6 +452,18 @@ typedef struct message_d { } message_d; assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(message_d)); +typedef struct dropdown_d { + WindowClass parent_wnd_class; + WindowNumber parent_wnd_num; + byte parent_button; + byte num_items; + byte selected_index; + const StringID *items; + byte click_delay; + bool drag_mode; +} dropdown_d; +assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(dropdown_d)); + enum WindowEvents { WE_CLICK = 0, WE_PAINT = 1, -- cgit v1.2.3-54-g00ecf