summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}