diff options
author | Simon Howard | 2006-09-19 23:49:20 +0000 |
---|---|---|
committer | Simon Howard | 2006-09-19 23:49:20 +0000 |
commit | 7bc72c666dc1d1e033c01b60ca38673651c7e81c (patch) | |
tree | 9addb24980e13065c07408b74e9618d15ab0c253 /textscreen/examples | |
parent | 3b747fcb62f9b3e5ffd9aec2f39c9ecc9f9fc5c8 (diff) | |
download | chocolate-doom-7bc72c666dc1d1e033c01b60ca38673651c7e81c.tar.gz chocolate-doom-7bc72c666dc1d1e033c01b60ca38673651c7e81c.tar.bz2 chocolate-doom-7bc72c666dc1d1e033c01b60ca38673651c7e81c.zip |
Fix textscreen warnings.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 626
Diffstat (limited to 'textscreen/examples')
-rw-r--r-- | textscreen/examples/calculator.c | 4 | ||||
-rw-r--r-- | textscreen/examples/guitest.c | 23 |
2 files changed, 7 insertions, 20 deletions
diff --git a/textscreen/examples/calculator.c b/textscreen/examples/calculator.c index 0c416f7c..79f8b6ee 100644 --- a/textscreen/examples/calculator.c +++ b/textscreen/examples/calculator.c @@ -99,6 +99,8 @@ void Calculate(TXT_UNCAST_ARG(button), void *unused) case OP_DIV: input_value = first_operand / input_value; break; + case OP_NONE: + break; } UpdateInputBox(); @@ -156,5 +158,7 @@ int main(int argc, char *argv[]) BuildGUI(); TXT_GUIMainLoop(); + + return 0; } diff --git a/textscreen/examples/guitest.c b/textscreen/examples/guitest.c index 9c96e2e5..b5bd1ea5 100644 --- a/textscreen/examples/guitest.c +++ b/textscreen/examples/guitest.c @@ -64,7 +64,7 @@ void SetupWindow(void) { txt_window_t *window; txt_table_t *table; - txt_table_t *leftpane, *rightpane; + txt_table_t *rightpane; txt_button_t *button; txt_checkbox_t *cheesy_checkbox; txt_window_action_t *pwn; @@ -159,25 +159,6 @@ void Window2(void) TXT_AddWidget(table, TXT_NewIntInputBox(&numbox_value, 10)); } -void DrawASCIIChart() -{ - int x, y; - - TXT_ClearScreen(); - - for (y=0; y<16; ++y) - { - for (x=0; x<16; ++x) - { - TXT_PutChar(' '); - TXT_PutChar(' '); - TXT_PutChar(' '); - TXT_PutChar(y * 16 + x); - } - TXT_PutChar('\n'); - } -} - int main(int argc, char *argv[]) { TXT_Init(); @@ -188,6 +169,8 @@ int main(int argc, char *argv[]) SetupWindow(); TXT_GUIMainLoop(); + + return 0; } |