# HG changeset patch # User Sam Lantinga # Date 1138172642 0 # Node ID 670e74bf5cc81c7245785257251e31e6361397fc # Parent f3a3f1890b911705b78211206d3347abd6c0937c 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! :) diff -r f3a3f1890b91 -r 670e74bf5cc8 test/testgl.c --- a/test/testgl.c Wed Jan 25 07:00:40 2006 +0000 +++ b/test/testgl.c Wed Jan 25 07:04:02 2006 +0000 @@ -498,7 +498,7 @@ 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; } }