[SDL] checkkeys.c test program

Sam Lantinga slouken at devolution.com
Sun Sep 15 23:22:01 PDT 2002


>  videoflags = SDL_SWSURFACE;
>  if ( strcmp(argv[1], "-fullscreen") == 0 ) {
>   videoflags |= SDL_FULLSCREEN;
>  }

> causes a GPF if argv[1] is NULL (no command-line parameters)

> What about this as a fix, in the tradition of the other examples:

[snipped]

I'll buy that for a dollar. :)

Thanks!
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list