Submission: PNG saving patch for SDL_Image

I got it to work. Here’s a working patch. It’s not fully feature-complete, (but then again, neither is the PNG loader,) but it’s a good starting point.

I hereby give my permission to include this code in the SDL_Image library, under whatever licenses it’s released under.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: png.diff
Type: application/octet-stream
Size: 11398 bytes
Desc: not available