summaryrefslogtreecommitdiff
path: root/textscreen/examples/calculator.c
diff options
context:
space:
mode:
authorSimon Howard2006-05-29 21:02:38 +0000
committerSimon Howard2006-05-29 21:02:38 +0000
commit64b2890756bc7f48fdf2fd0ef8c25dd8f0fd1c22 (patch)
treea55da1810e1d5cf0e58fa93d944cdde09d412734 /textscreen/examples/calculator.c
parente4dcdc8be43cd9b07e7f3a7b54279f54f531c419 (diff)
downloadchocolate-doom-64b2890756bc7f48fdf2fd0ef8c25dd8f0fd1c22.tar.gz
chocolate-doom-64b2890756bc7f48fdf2fd0ef8c25dd8f0fd1c22.tar.bz2
chocolate-doom-64b2890756bc7f48fdf2fd0ef8c25dd8f0fd1c22.zip
Convert calculator example to struts
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 545
Diffstat (limited to 'textscreen/examples/calculator.c')
-rw-r--r--textscreen/examples/calculator.c4
1 files 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();
}