test/testsprite.c
branchSDL-1.3
changeset 1666 6e7ec5cb83c3
parent 1662 782fd950bd46
child 1668 4da1ee79c9af
     1.1 --- a/test/testsprite.c	Sun May 28 18:18:30 2006 +0000
     1.2 +++ b/test/testsprite.c	Sun May 28 21:56:07 2006 +0000
     1.3 @@ -156,7 +156,6 @@
     1.4  int
     1.5  main (int argc, char *argv[])
     1.6  {
     1.7 -    SDL_DisplayMode mode;
     1.8      SDL_Surface *screen;
     1.9      Uint8 *mem;
    1.10      int width, height;
    1.11 @@ -212,11 +211,7 @@
    1.12      }
    1.13  
    1.14      /* Set video mode */
    1.15 -    mode.format = 0;            /* FIXME */
    1.16 -    mode.w = width;
    1.17 -    mode.h = height;
    1.18 -    mode.refresh_rate = 0;
    1.19 -    screen = SDL_SetDisplayMode (&mode, videoflags);
    1.20 +    screen = SDL_SetVideoMode (width, height, video_bpp, videoflags);
    1.21      if (!screen) {
    1.22          fprintf (stderr, "Couldn't set %dx%d video mode: %s\n",
    1.23                   width, height, SDL_GetError ());