test/testgl.c
changeset 320 66f815c147ed
parent 243 cf4944faad96
child 363 ca0b4ba5313e
     1.1 --- a/test/testgl.c	Tue Mar 26 17:37:31 2002 +0000
     1.2 +++ b/test/testgl.c	Thu Mar 28 16:20:10 2002 +0000
     1.3 @@ -393,7 +393,7 @@
     1.4  }
     1.5  
     1.6  int RunGLTest( int argc, char* argv[],
     1.7 -               int logo, int slowly, int bpp, float gamma )
     1.8 +               int logo, int slowly, int bpp, float gamma, int noframe )
     1.9  {
    1.10  	int i;
    1.11  	int rgb_size[3];
    1.12 @@ -447,6 +447,10 @@
    1.13  		}
    1.14  	}
    1.15  
    1.16 +        if (noframe) {
    1.17 +           video_flags |= SDL_NOFRAME;
    1.18 +        }
    1.19 +
    1.20  	/* Initialize the display */
    1.21  	switch (bpp) {
    1.22  	    case 8:
    1.23 @@ -686,6 +690,7 @@
    1.24  	int bpp = 0;
    1.25  	int slowly;
    1.26  	float gamma = 0.0;
    1.27 +        int noframe = 0;
    1.28  
    1.29  	logo = 0;
    1.30  	slowly = 0;
    1.31 @@ -711,15 +716,18 @@
    1.32  		if ( strcmp(argv[i], "-gamma") == 0 ) {
    1.33   		       gamma = (float)atof(argv[++i]);
    1.34  		}
    1.35 +		if ( strcmp(argv[i], "-noframe") == 0 ) {
    1.36 + 		       noframe = 1;
    1.37 +		}
    1.38  		if ( strncmp(argv[i], "-h", 2) == 0 ) {
    1.39   		       printf(
    1.40 -"Usage: %s [-twice] [-logo] [-slow] [-bpp n] [-gamma n]\n",
    1.41 +"Usage: %s [-twice] [-logo] [-slow] [-bpp n] [-gamma n] [-noframe]\n",
    1.42   			      argv[0]);
    1.43  			exit(0);
    1.44  		}
    1.45  	}
    1.46  	for ( i=0; i<numtests; ++i ) {
    1.47 - 	       RunGLTest(argc, argv, logo, slowly, bpp, gamma);
    1.48 + 	       RunGLTest(argc, argv, logo, slowly, bpp, gamma, noframe);
    1.49  	}
    1.50  	return 0;
    1.51  }