[SDL] [patch] direct color support

Sam Lantinga slouken at devolution.com
Tue Jan 11 22:28:44 PST 2005

> I would add something: 
> I'm one of the devs of the bzflag.
> I recently added SDL to the game, as the game is multiplatform.
> Another the dev used to play with direct-color 8 bit, as it was
> supported on the game before SDL adding.
> Analyzing the problem we found that SDL_pixel.c need to be patched with
> some lines of code, not handling our particular configuration. 
> We are now releasing really soon, and we would like those patch, or
> something else that fixes it, to be applied, in a way that we could in
> the future, eventually discard the old files.

I've been hesitant to apply this patch, since I don't have access to a
direct-color 8 bit display, and I know that SDL always assumes 1 byte per
pixel to be a palettized mode for blitting purposes.

Does the patch as written address your needs?

See ya!
	-Sam Lantinga, Software Engineer, Blizzard Entertainment

More information about the SDL mailing list