[SDL] Any automatic way to show 32-bit images on a 256 colors PC?
Manuel García Cabrera
manugarciac5 at yahoo.com.ar
Wed Jun 6 20:43:24 PDT 2007
I tried, but I must call SetColors, right? And how can I call set colors
if I don't know which palette I'll use?
Stephane Marchesin escribió:
> Manuel García Cabrera wrote:
>> When I have a 32-bit image on a 16-bit PC, simply calling
>> SDL_CreateRGBSurfaceFrom (with 32 in its arguments) and then blitting it
>> to my 16-bit screen seems to do the job just fine.
> Why don't you do the same with 256 colors ? SDL will map to the palette
> accordingly (it might look bad, but that's what you get at 8bbp anyway :).
>
> Stephane
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
More information about the SDL
mailing list