does anybody know how can I save an SDL surface to a PNG file?
In SDL I’ve only found SDL_SaveBMP.
I’ve also found this code:
What do you think? Is it safe to use it?
Or does exist a better way to save a surface to PNG?
Thanks in advance for your help