Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug with IMG_Init() return value.
Luke J Crook to sdl The documentation for IMG_Init states: "You may call this function with a 0 to retrieve whether support was built-in or not loaded yet." What does this statement mean? I had assumed this to mean that calling IMG_Init (0) will return the current status of JPG, PNG or TIF support. However looking at the source, IMG_Init(0) will always return 0 as `flags` is bitwise ANDed with IMG_INIT_JPG/IMG_INIT_PNG/IMG_INIT_TIF.
- Loading branch information