diff options
author | Filippos Karapetis | 2012-09-06 01:34:20 +0300 |
---|---|---|
committer | Filippos Karapetis | 2012-09-06 01:35:58 +0300 |
commit | 1f11ce6df2491e51c713278b6bfc6464a9aef965 (patch) | |
tree | 1f56abc76da333b75deea7880974bb6a74e1dd53 | |
parent | 25f4a3fb0838a8ed658e76eabd78f3ce2f5661e6 (diff) | |
download | scummvm-rg350-1f11ce6df2491e51c713278b6bfc6464a9aef965.tar.gz scummvm-rg350-1f11ce6df2491e51c713278b6bfc6464a9aef965.tar.bz2 scummvm-rg350-1f11ce6df2491e51c713278b6bfc6464a9aef965.zip |
PNG: call png_set_interlace_handling() before calling png_read_update_info()
This matches the documentation, information from the PNG bug tracker and the
behavior of example decoders off the net. It fixes warnings thrown from the PNG
decoder
-rw-r--r-- | graphics/decoders/png.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/decoders/png.cpp b/graphics/decoders/png.cpp index bfaab6dc35..4f917b44b1 100644 --- a/graphics/decoders/png.cpp +++ b/graphics/decoders/png.cpp @@ -191,6 +191,7 @@ bool PNGDecoder::loadStream(Common::SeekableReadStream &stream) { } // After the transformations have been registered, the image data is read again. + png_set_interlace_handling(pngPtr); png_read_update_info(pngPtr, infoPtr); png_get_IHDR(pngPtr, infoPtr, &w, &h, &bitDepth, &colorType, NULL, NULL, NULL); width = w; |