diff options
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. |