test/testalpha.c
branchSDL-1.2
changeset 5943 b442dbd2b6be
parent 3868 b2f59aadec0d
     1.1 --- a/test/testalpha.c	Thu Sep 15 20:59:57 2011 -0400
     1.2 +++ b/test/testalpha.c	Fri Sep 16 00:11:23 2011 -0400
     1.3 @@ -505,14 +505,24 @@
     1.4  					}
     1.5  					break;
     1.6  				case SDL_KEYDOWN:
     1.7 -#ifndef _WIN32_WCE
     1.8 +#ifdef _WIN32_WCE
     1.9 +					// there is no ESC key at all
    1.10 +					done = 1;
    1.11 +#else
    1.12  					if ( event.key.keysym.sym == SDLK_ESCAPE ) {
    1.13  						done = 1;
    1.14 +					} else if (event.key.keysym.sym == SDLK_t) {
    1.15 +						videoflags ^= SDL_FULLSCREEN;
    1.16 +						screen = SDL_SetVideoMode(w, h, video_bpp, videoflags);
    1.17 +						if ( screen == NULL ) {
    1.18 +							fprintf(stderr, "Couldn't toggle video mode: %s\n",
    1.19 +									SDL_GetError());
    1.20 +							quit(2);
    1.21 +						}
    1.22 +						FillBackground(screen);
    1.23  					}
    1.24 -#else
    1.25 -					// there is no ESC key at all
    1.26 -					done = 1;
    1.27  #endif
    1.28 +
    1.29  					break;
    1.30  				case SDL_QUIT:
    1.31  					done = 1;