summaryrefslogtreecommitdiff
path: root/textscreen/txt_table.c
diff options
context:
space:
mode:
authorSimon Howard2006-05-21 20:56:28 +0000
committerSimon Howard2006-05-21 20:56:28 +0000
commit9908aee5026d4cf74e29eb0536e9a7e532ad386c (patch)
tree8509dd5e260b860fc28cae393c1c167046ff7214 /textscreen/txt_table.c
parent9ba105fa4ee6e68c1bbea9568a36b31fc47cf24c (diff)
downloadchocolate-doom-9908aee5026d4cf74e29eb0536e9a7e532ad386c.tar.gz
chocolate-doom-9908aee5026d4cf74e29eb0536e9a7e532ad386c.tar.bz2
chocolate-doom-9908aee5026d4cf74e29eb0536e9a7e532ad386c.zip
Initialise the table selection on table creation.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 498
Diffstat (limited to 'textscreen/txt_table.c')
-rw-r--r--textscreen/txt_table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/textscreen/txt_table.c b/textscreen/txt_table.c
index a77d7a12..5ae9ee62 100644
--- a/textscreen/txt_table.c
+++ b/textscreen/txt_table.c
@@ -414,6 +414,8 @@ void TXT_InitTable(txt_table_t *table, int columns)
table->widget.widget_class = &txt_table_class;
table->widget.visible = 1;
table->widget.selectable = 1;
+ table->selected_x = 0;
+ table->selected_y = 0;
}
txt_table_t *TXT_NewTable(int columns)