test/testpalette.c
changeset 2855 422452508c76
parent 2851 6c3fbeb04eca
child 3589 06f0768a904c
--- a/test/testpalette.c	Sun Dec 07 22:48:06 2008 +0000
+++ b/test/testpalette.c	Sun Dec 07 22:56:18 2008 +0000
@@ -82,7 +82,7 @@
 
     /* set the palette to the logical screen palette so that blits
        won't be translated */
-    SDL_SetColors(bg, screen->format->palette->colors, 0, 256);
+    SDL_SetSurfacePalette(bg, screen->format->palette);
 
     /* Make a wavy background pattern using colours 0-63 */
     if (SDL_LockSurface(bg) < 0)