Commit 53598ce4 authored by Sam Lantinga's avatar Sam Lantinga

From: Jonathan Atkins

Subject: testoverlay...

here's a fun one:
./testoverlay -scale -h

it seems to print argv[optind-1] as the program name...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40604
parent 0f604514
......@@ -315,6 +315,7 @@ static void PrintUsage(char *argv0)
int main(int argc, char **argv)
{
char *argv0 = argv[0];
int flip;
int delay;
int desired_bpp;
......@@ -437,7 +438,7 @@ int main(int argc, char **argv)
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 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment