test/testsprite2.c
branchSDL-1.3
changeset 1733 0b1070f2f94d
parent 1725 98a3207ddde8
     1.1 --- a/test/testsprite2.c	Sat Jul 08 20:55:39 2006 +0000
     1.2 +++ b/test/testsprite2.c	Sun Jul 09 09:02:26 2006 +0000
     1.3 @@ -162,14 +162,7 @@
     1.4          SDL_zero(fullscreen_mode);
     1.5          fullscreen_mode.w = window_w;
     1.6          fullscreen_mode.h = window_h;
     1.7 -        mode = &fullscreen_mode;
     1.8 -    } else {
     1.9 -        /* Set the desktop mode, we don't care what it is */
    1.10 -        mode = NULL;
    1.11 -    }
    1.12 -    if (SDL_SetDisplayMode(mode) < 0) {
    1.13 -        fprintf(stderr, "Couldn't set display mode: %s\n", SDL_GetError());
    1.14 -        quit(2);
    1.15 +        SDL_SetFullscreenDisplayMode(&fullscreen_mode);
    1.16      }
    1.17  
    1.18      /* Create the windows, initialize the renderers, and load the textures */