Date: Mon, 22 Sep 2003 23:31:54 -0700 (PDT)
authorSam Lantinga
Wed, 25 Jan 2006 07:04:02 +0000
changeset 1265670e74bf5cc8
parent 1264 f3a3f1890b91
child 1266 a7bea6db3c3e
Date: Mon, 22 Sep 2003 23:31:54 -0700 (PDT)
From: Rob Neff
Subject: [SDL] testgl.c minor bug fix for fullscreen mode

from:

if ( strcmp(argv[1], "-fullscreen") == 0 ) {

to:

if ( strcmp(argv[i], "-fullscreen") == 0 ) {


Minor bug, but might help someone else out who is trying to pass
the command-line params -logo -fullscreen like I was! :)
test/testgl.c
     1.1 --- a/test/testgl.c	Wed Jan 25 07:00:40 2006 +0000
     1.2 +++ b/test/testgl.c	Wed Jan 25 07:04:02 2006 +0000
     1.3 @@ -498,7 +498,7 @@
     1.4  		video_flags = SDL_OPENGL;
     1.5  	}
     1.6  	for ( i=1; argv[i]; ++i ) {
     1.7 -		if ( strcmp(argv[1], "-fullscreen") == 0 ) {
     1.8 +		if ( strcmp(argv[i], "-fullscreen") == 0 ) {
     1.9  			video_flags |= SDL_FULLSCREEN;
    1.10  		}
    1.11  	}