-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define for SAVE_PNG support #235
Comments
If you do that, you should do an equivalent of it in autotools too. |
Ok thanks, I'll try that later! |
Haven't looked at it, but if we do this we may do a similar thing for SAVE_JPG for consistency. |
@sezero I think this is quite ok, but not really used to updating autotools !? |
I will regenerate configure shortly |
Fixed 2f5c99c thanks ! |
This can be closed now? |
still need:
|
That I already did |
@1bsyl @sezero If PNG and/or JPG save are optional, and this can be configured separately from PNG/JPEG load support, is there a method of checking whether SDL_image has been built with/without those options? If not, is there at least an informative error message set when SavePNG/SaveJPG are called indicating that the linked version of image was compiled without those options? |
Yes, the functions will return -1 and the error will indicate that SDL_image was built without save support. However, the default public builds will always have save support enabled. This option is only available for custom builds made by developers that want to minimize the code size and don't need save support. |
Ah, good to know. Thanks! |
This wasn't updated when the SAVE_PNG macro was renamed to SDL_IMAGE_SAVE_PNG. Fixes: 3af38ea "Fixed bug libsdl-org#235: add options to disable saving png/jpg images" Signed-off-by: Simon McVittie <smcv@collabora.com>
This wasn't updated when the SAVE_PNG macro was renamed to SDL_IMAGE_SAVE_PNG. Fixes: 3af38ea "Fixed bug libsdl-org#235: add options to disable saving png/jpg images" Signed-off-by: Simon McVittie <smcv@collabora.com>
This wasn't updated when the SAVE_PNG macro was renamed to SDL_IMAGE_SAVE_PNG. Fixes: 3af38ea "Fixed bug libsdl-org#235: add options to disable saving png/jpg images" Signed-off-by: Simon McVittie <smcv@collabora.com>
This wasn't updated when the SAVE_PNG macro was renamed to SDL_IMAGE_SAVE_PNG. Fixes: 3af38ea "Fixed bug libsdl-org#235: add options to disable saving png/jpg images" Signed-off-by: Simon McVittie <smcv@collabora.com>
It would be nice to re-add the define to compile out the PNG support:
eg:
The text was updated successfully, but these errors were encountered: