diff options
author | Simon Howard | 2006-05-29 21:02:38 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-29 21:02:38 +0000 |
commit | 64b2890756bc7f48fdf2fd0ef8c25dd8f0fd1c22 (patch) | |
tree | a55da1810e1d5cf0e58fa93d944cdde09d412734 | |
parent | e4dcdc8be43cd9b07e7f3a7b54279f54f531c419 (diff) | |
download | chocolate-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
-rw-r--r-- | textscreen/examples/calculator.c | 4 |
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(); } |