Fixed palette sharing
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403316
This commit is contained in:
parent
6096d0f8e1
commit
f9312a8957
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ make_bg(SDL_Surface * screen, int startcol)
|
||||||
|
|
||||||
/* set the palette to the logical screen palette so that blits
|
/* set the palette to the logical screen palette so that blits
|
||||||
won't be translated */
|
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 */
|
/* Make a wavy background pattern using colours 0-63 */
|
||||||
if (SDL_LockSurface(bg) < 0)
|
if (SDL_LockSurface(bg) < 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue