Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
png: Make it possible to load several images cat'd together in one RW…
…ops. This parses the basic structure of the PNG file to figure out the exact size of a single PNG for reading. Now the RWops only seeks back to the start position if there was a failure, so multiple IMG_Load* calls to the same RWops will work if other images are packed after a PNG in the stream.
- Loading branch information
Showing
1 changed file
with
77 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters