From c4908523d3fb52c0c97543d19acbf7fe6420bd70 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 7 Dec 2008 22:56:18 +0000 Subject: [PATCH] Fixed palette sharing --- test/testpalette.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testpalette.c b/test/testpalette.c index 39040e46e..b61a75a87 100644 --- a/test/testpalette.c +++ b/test/testpalette.c @@ -82,7 +82,7 @@ make_bg(SDL_Surface * screen, int startcol) /* 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)