Commit ca8ee26f authored by Sam Lantinga's avatar Sam Lantinga

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! :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401268
parent 866ce3c3
...@@ -498,7 +498,7 @@ int RunGLTest( int argc, char* argv[], ...@@ -498,7 +498,7 @@ int RunGLTest( int argc, char* argv[],
video_flags = SDL_OPENGL; video_flags = SDL_OPENGL;
} }
for ( i=1; argv[i]; ++i ) { for ( i=1; argv[i]; ++i ) {
if ( strcmp(argv[1], "-fullscreen") == 0 ) { if ( strcmp(argv[i], "-fullscreen") == 0 ) {
video_flags |= SDL_FULLSCREEN; video_flags |= SDL_FULLSCREEN;
} }
} }
......
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