Navigation Menu

Skip to content

Commit

Permalink
Date: Mon, 22 Sep 2003 23:31:54 -0700 (PDT)
Browse files Browse the repository at this point in the history
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! :)
  • Loading branch information
slouken committed Jan 25, 2006
1 parent 93bbe13 commit 5c127c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testgl.c
Expand Up @@ -498,7 +498,7 @@ int RunGLTest( int argc, char* argv[],
video_flags = SDL_OPENGL;
}
for ( i=1; argv[i]; ++i ) {
if ( strcmp(argv[1], "-fullscreen") == 0 ) {
if ( strcmp(argv[i], "-fullscreen") == 0 ) {
video_flags |= SDL_FULLSCREEN;
}
}
Expand Down

0 comments on commit 5c127c5

Please sign in to comment.