foxygit / doom Log in
commit fb5f3408beef89872cbc2c51b5ce5e594e119031
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Sep 9 19:11:05 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sat Sep 9 19:11:05 2006 +0000

    Add command line arguments to main() in textscreen examples.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 602
---
 textscreen/examples/calculator.c | 2 +-
 textscreen/examples/guitest.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/textscreen/examples/calculator.c b/textscreen/examples/calculator.c
index af4cb3d4..0c416f7c 100644
--- a/textscreen/examples/calculator.c
+++ b/textscreen/examples/calculator.c
@@ -148,7 +148,7 @@ void BuildGUI()
     UpdateInputBox();
 }

-int main()
+int main(int argc, char *argv[])
 {
     TXT_Init();
     TXT_SetDesktopTitle("Calculator demo");
diff --git a/textscreen/examples/guitest.c b/textscreen/examples/guitest.c
index f3d27582..9c96e2e5 100644
--- a/textscreen/examples/guitest.c
+++ b/textscreen/examples/guitest.c
@@ -178,7 +178,7 @@ void DrawASCIIChart()
     }
 }

-int main()
+int main(int argc, char *argv[])
 {
     TXT_Init();