comparison test/testgl.c @ 1265:670e74bf5cc8

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! :)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 25 Jan 2006 07:04:02 +0000
parents 4272450dd8d0
children 4d3bb026cd16
comparison
equal deleted inserted replaced
1264:f3a3f1890b91 1265:670e74bf5cc8
496 video_flags = SDL_OPENGLBLIT; 496 video_flags = SDL_OPENGLBLIT;
497 } else { 497 } else {
498 video_flags = SDL_OPENGL; 498 video_flags = SDL_OPENGL;
499 } 499 }
500 for ( i=1; argv[i]; ++i ) { 500 for ( i=1; argv[i]; ++i ) {
501 if ( strcmp(argv[1], "-fullscreen") == 0 ) { 501 if ( strcmp(argv[i], "-fullscreen") == 0 ) {
502 video_flags |= SDL_FULLSCREEN; 502 video_flags |= SDL_FULLSCREEN;
503 } 503 }
504 } 504 }
505 505
506 if (noframe) { 506 if (noframe) {