author | Sam Lantinga <slouken@libsdl.org> |
Sun, 07 Dec 2008 22:56:18 +0000 | |
changeset 2855 | 422452508c76 |
parent 2854 | e92d58afcbda |
child 2856 | c765f5fa4a2c |
--- 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)