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