diff options
author | Johannes Schickel | 2013-08-03 02:35:31 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:49 +0200 |
commit | 5111746911958bd35422e9614b0961a6b911ea06 (patch) | |
tree | 0b166db3132da17f7a49a40b8914aa1b94e03c05 /graphics/decoders/png.cpp | |
parent | f03dc05847a77661c2978619099ab18c82bb94f7 (diff) | |
download | scummvm-rg350-5111746911958bd35422e9614b0961a6b911ea06.tar.gz scummvm-rg350-5111746911958bd35422e9614b0961a6b911ea06.tar.bz2 scummvm-rg350-5111746911958bd35422e9614b0961a6b911ea06.zip |
GRAPHICS: Take advantage of Surface::getPixels.
Diffstat (limited to 'graphics/decoders/png.cpp')
-rw-r--r-- | graphics/decoders/png.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/decoders/png.cpp b/graphics/decoders/png.cpp index ac9689fcc8..505475213f 100644 --- a/graphics/decoders/png.cpp +++ b/graphics/decoders/png.cpp @@ -164,7 +164,7 @@ bool PNGDecoder::loadStream(Common::SeekableReadStream &stream) { png_set_packing(pngPtr); } else { _outputSurface->create(width, height, Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0)); - if (!_outputSurface->getBasePtr(0, 0)) { + if (!_outputSurface->getPixels()) { error("Could not allocate memory for output image."); } if (bitDepth == 16) |