test/testsprite2.c
branchSDL-1.3
changeset 1707 57ce47f033a5
parent 1706 1577404809f0
child 1712 931d111e737a
     1.1 --- a/test/testsprite2.c	Sat Jun 24 16:51:01 2006 +0000
     1.2 +++ b/test/testsprite2.c	Sat Jun 24 17:01:29 2006 +0000
     1.3 @@ -155,22 +155,10 @@
     1.4          }
     1.5      }
     1.6  
     1.7 -    /* Initialize the video mode, if necessary */
     1.8 -    current_mode = SDL_GetCurrentDisplayMode();
     1.9 -    if (!current_mode->w || !current_mode->h) {
    1.10 -        SDL_DisplayMode mode;
    1.11 -
    1.12 -        /* Let the driver pick something it likes, we don't care */
    1.13 -        mode.format = 0;
    1.14 -        mode.w = 0;
    1.15 -        mode.h = 0;
    1.16 -        mode.refresh_rate = 0;
    1.17 -
    1.18 -        if (SDL_SetDisplayMode(&mode) < 0) {
    1.19 -            fprintf(stderr, "Couldn't set display mode: %s\n",
    1.20 -                    SDL_GetError());
    1.21 -            quit(2);
    1.22 -        }
    1.23 +    /* Set the desktop mode, we don't care what it is */
    1.24 +    if (SDL_SetDisplayMode(NULL) < 0) {
    1.25 +        fprintf(stderr, "Couldn't set display mode: %s\n", SDL_GetError());
    1.26 +        quit(2);
    1.27      }
    1.28  
    1.29      /* Create the windows, initialize the renderers, and load the textures */