From 64b2890756bc7f48fdf2fd0ef8c25dd8f0fd1c22 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 29 May 2006 21:02:38 +0000 Subject: Convert calculator example to struts Subversion-branch: /trunk/chocolate-doom Subversion-revision: 545 --- textscreen/examples/calculator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/textscreen/examples/calculator.c b/textscreen/examples/calculator.c index c2be94f8..63484559 100644 --- a/textscreen/examples/calculator.c +++ b/textscreen/examples/calculator.c @@ -119,7 +119,7 @@ void BuildGUI() TXT_SetBGColor(input_box, TXT_COLOR_BLACK); TXT_AddWidget(window, input_box); TXT_AddWidget(window, TXT_NewSeparator(NULL)); - TXT_AddWidget(window, NULL); + TXT_AddWidget(window, TXT_NewStrut(0, 1)); table = TXT_NewTable(4); TXT_AddWidget(window, table); @@ -143,7 +143,7 @@ void BuildGUI() TXT_AddWidget(table, equals_button); AddOperatorButton(table, "/", OP_DIV); - TXT_AddWidget(window, NULL); + TXT_AddWidget(window, TXT_NewStrut(0, 1)); UpdateInputBox(); } -- cgit v1.2.3