# HG changeset patch # User Sam Lantinga # Date 1228690578 0 # Node ID 422452508c76cb07111eda44068a6879e1b0ab4f # Parent e92d58afcbdaf56e9c8932cea106fef33fb3a5a1 Fixed palette sharing diff -r e92d58afcbda -r 422452508c76 test/testpalette.c --- 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)