SDL 1.3 SDL_MasksToPixelFormatEnum

Hello,

I’ve been poking around in the SDL 1.3 code for Surface->Texture and I
noticed that SDL_MasksToPixelFormatEnum (found in SDL_pixels.c) does
not have code for 24 bit per pixel formats (it has support for 8, 12,
15, 16, and 32). Is this a bug? Can someone clarify why this is the
case?

thanks,

  • Holmes Futrell

Hello,

Sorry about that. I answered my own question … it turns out some
pixel formats that I expected to be 24 bit (SDL_PIXELFORMAT_RGB888,
for example) are actually 32 bit. I’m assuming this is for word
alignment?

any ideas?

  • HolmesOn Jun 17, 2008, at 8:39 PM, Holmes Futrell wrote:

Hello,

I’ve been poking around in the SDL 1.3 code for Surface->Texture and
I noticed that SDL_MasksToPixelFormatEnum (found in SDL_pixels.c)
does not have code for 24 bit per pixel formats (it has support for
8, 12, 15, 16, and 32). Is this a bug? Can someone clarify why
this is the case?

thanks,

  • Holmes Futrell

SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org