I wrote up a simple patch to add PNG-saving capabilities to SDL_Image. It almost works, too. Problem is, the colors come out all scrambled, and I don’t know enough C to figure out what’s wrong. Can anyone take a look at this and fix it up a bit?
Use case:
1.) Load a PNG image with IMG_LoadPNG_RW.
2.) Save it with IMG_SavePNG_RW.
3.) See if they’re identical or not.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: png.diff
Type: application/octet-stream
Size: 11461 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090404/970a7338/attachment.obj