openDOW + sdlcl: black becomes red
https://github.com/rofl0r/openDOW
LD_LIBRARY_PATH=~/sdlcl ./spriteview.out

./spriteview.out

It looks like OpenDOW doesn't look at the actual pixel format of the SDL display surface, so you could end up having a similar issue on SDL 1.2 depending on the video driver used. Having said that, I've changed SDLCL to use the same 32-bit pixel format as SDL 1.2 under X11, which should fix this issue.
thanks! i've never heard that you're supposed to look at the actual pixel format of the SDL display surfaces. do you know of any resources documenting this?
You can find what you need in the documentation for SDL_Surface. If you don't need to convert that many colors, you could use SDL_MapRGB() or SDL_MapRGBA().
ouch. having to call a function for every pixel sounds like performance's gonna take a major hit.