Fixed palette sharing
authorSam Lantinga <slouken@libsdl.org>
Sun, 07 Dec 2008 22:56:18 +0000
changeset 2855422452508c76
parent 2854 e92d58afcbda
child 2856 c765f5fa4a2c
Fixed palette sharing
test/testpalette.c
     1.1 --- a/test/testpalette.c	Sun Dec 07 22:48:06 2008 +0000
     1.2 +++ b/test/testpalette.c	Sun Dec 07 22:56:18 2008 +0000
     1.3 @@ -82,7 +82,7 @@
     1.4  
     1.5      /* set the palette to the logical screen palette so that blits
     1.6         won't be translated */
     1.7 -    SDL_SetColors(bg, screen->format->palette->colors, 0, 256);
     1.8 +    SDL_SetSurfacePalette(bg, screen->format->palette);
     1.9  
    1.10      /* Make a wavy background pattern using colours 0-63 */
    1.11      if (SDL_LockSurface(bg) < 0)