diff options
author | Simon Howard | 2006-05-18 18:55:24 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-18 18:55:24 +0000 |
commit | f6e8d4c46e9ffebe43a3ea84df3e544417266091 (patch) | |
tree | dc8a231a3ff7dc619e1b198dc66a2699d9d6a5b8 /textscreen/txt_window.c | |
parent | 978ddf539803405ab8fed17e21014ee1ae69fac8 (diff) | |
download | chocolate-doom-f6e8d4c46e9ffebe43a3ea84df3e544417266091.tar.gz chocolate-doom-f6e8d4c46e9ffebe43a3ea84df3e544417266091.tar.bz2 chocolate-doom-f6e8d4c46e9ffebe43a3ea84df3e544417266091.zip |
Make TXT_AddWidget take a NULL pointer so different widget types can
be passed to it.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 481
Diffstat (limited to 'textscreen/txt_window.c')
-rw-r--r-- | textscreen/txt_window.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c index b50da9b4..ce58aaa3 100644 --- a/textscreen/txt_window.c +++ b/textscreen/txt_window.c @@ -166,8 +166,12 @@ void TXT_DrawAllWindows(void) TXT_UpdateScreen(); } -void TXT_AddWidget(txt_window_t *window, txt_widget_t *widget) +void TXT_AddWidget(txt_window_t *window, void *uncast_widget) { + txt_widget_t *widget; + + widget = (txt_widget_t *) uncast_widget; + if (window->num_widgets == 0) { // This is the first widget added. |