Right. So the images are loaded as 32-bit (RGBA) images.StaticReturn wrote: The result of your debug statement prints out 34 cases of the following, with "i" going from 0 to 33.Code: Select all
i=0, BitsPerPixel=32, palette=0x0 SDL_SetColors:
But the original images in data/GUARD.DAT/ are paletted images.
Just a question: Are you using the original images?
If you do, then this might be a bug in SDL that appears only on OS X.
EDIT:
I just found this: http://forums.libsdl.org/viewtopic.php?p=27895#27895 -- PNG with 8bit colormap loaded as full 32 bits per pixel
So this is a bug in SDL, more precisely in the PNG loader of OS X.