diff src/SDL_compat.c @ 1681:80a5e6a4e1e2 SDL-1.3

Working on paletted display and texture support (two different issues)
author Sam Lantinga <slouken@libsdl.org>
date Thu, 15 Jun 2006 07:07:07 +0000
parents 9488fca10677
children 7ae8018b2e5d
line wrap: on
line diff
--- a/src/SDL_compat.c	Wed Jun 14 08:41:13 2006 +0000
+++ b/src/SDL_compat.c	Thu Jun 15 07:07:07 2006 +0000
@@ -666,6 +666,8 @@
         SDL_SetTexturePalette(SDL_VideoTexture,
                               SDL_VideoSurface->format->palette->colors, 0,
                               SDL_VideoSurface->format->palette->ncolors);
+        SDL_SetDisplayPalette(SDL_VideoSurface->format->palette->colors, 0,
+                              SDL_VideoSurface->format->palette->ncolors);
     }
 
     return gotall;