diff test/testsprite.c @ 1666:6e7ec5cb83c3 SDL-1.3

The dummy video driver compiles. :)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 21:56:07 +0000
parents 782fd950bd46
children 4da1ee79c9af
line wrap: on
line diff
--- 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 ());