diff options
author | Simon Howard | 2011-04-04 20:07:07 +0000 |
---|---|---|
committer | Simon Howard | 2011-04-04 20:07:07 +0000 |
commit | 9f3f6683d929d118b18e21b06a0b729586569e1a (patch) | |
tree | 1a30dd5d65b9b371eb7beb66273ba134f2a38319 /textscreen/txt_table.c | |
parent | f596cfcd76c8c03c41c0691561c9b3c9c4419393 (diff) | |
download | chocolate-doom-9f3f6683d929d118b18e21b06a0b729586569e1a.tar.gz chocolate-doom-9f3f6683d929d118b18e21b06a0b729586569e1a.tar.bz2 chocolate-doom-9f3f6683d929d118b18e21b06a0b729586569e1a.zip |
Change the background color when hovering over widgets.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2320
Diffstat (limited to 'textscreen/txt_table.c')
-rw-r--r-- | textscreen/txt_table.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/textscreen/txt_table.c b/textscreen/txt_table.c index ffe6fd14..b9d727a3 100644 --- a/textscreen/txt_table.c +++ b/textscreen/txt_table.c @@ -173,6 +173,10 @@ void TXT_AddWidget(TXT_UNCAST_ARG(table), TXT_UNCAST_ARG(widget)) sizeof(txt_widget_t *) * (table->num_widgets + 1)); table->widgets[table->num_widgets] = widget; ++table->num_widgets; + + // Maintain parent pointer. + + widget->parent = &table->widget; } // Add multiple widgets to a table. |