Mercurial > sdl-ios-xcode
changeset 603:2e726be3dc08
From: Jonathan Atkins
Subject: testoverlay...
here's a fun one:
./testoverlay -scale -h
it seems to print argv[optind-1] as the program name...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 06 Mar 2003 05:57:29 +0000 |
parents | a24bd700f92e |
children | 31d3af76488b |
files | test/testoverlay.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testoverlay.c Wed Mar 05 05:28:09 2003 +0000 +++ b/test/testoverlay.c Thu Mar 06 05:57:29 2003 +0000 @@ -315,6 +315,7 @@ int main(int argc, char **argv) { + char *argv0 = argv[0]; int flip; int delay; int desired_bpp; @@ -437,7 +438,7 @@ argc -= 1; } else if (( strcmp(argv[1], "-help") == 0 ) || (strcmp(argv[1], "-h") == 0)) { - PrintUsage(argv[0]); + PrintUsage(argv0); exit(1); } else if ( strcmp(argv[1], "-fullscreen") == 0 ) {