changeset 2855:422452508c76

Fixed palette sharing
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 Dec 2008 22:56:18 +0000
parents e92d58afcbda
children c765f5fa4a2c
files test/testpalette.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)