diff options
author | Max Horn | 2010-10-24 01:32:52 +0000 |
---|---|---|
committer | Max Horn | 2010-10-24 01:32:52 +0000 |
commit | 4d6fb4e76819f7e5621685a32f4ff075e7b5674c (patch) | |
tree | f82389b36af75bd02a6cee4bac0981d0e0c308af /engines/sword25/gfx/image/renderedimage.cpp | |
parent | 7cc8811a5c9b63703c2131841745cd5b7e5f009a (diff) | |
download | scummvm-rg350-4d6fb4e76819f7e5621685a32f4ff075e7b5674c.tar.gz scummvm-rg350-4d6fb4e76819f7e5621685a32f4ff075e7b5674c.tar.bz2 scummvm-rg350-4d6fb4e76819f7e5621685a32f4ff075e7b5674c.zip |
SWORD25: Get rid of colorFormat parameter in PNGLoader API
Only CF_ARGB32 was supported anyway.
svn-id: r53756
Diffstat (limited to 'engines/sword25/gfx/image/renderedimage.cpp')
-rw-r--r-- | engines/sword25/gfx/image/renderedimage.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/sword25/gfx/image/renderedimage.cpp b/engines/sword25/gfx/image/renderedimage.cpp index a989b2be60..9392eca044 100644 --- a/engines/sword25/gfx/image/renderedimage.cpp +++ b/engines/sword25/gfx/image/renderedimage.cpp @@ -70,16 +70,15 @@ RenderedImage::RenderedImage(const Common::String &filename, bool &result) : } // Bildeigenschaften bestimmen - GraphicEngine::COLOR_FORMATS colorFormat; int pitch; - if (!PNGLoader::imageProperties(pFileData, fileSize, colorFormat, _width, _height)) { + if (!PNGLoader::imageProperties(pFileData, fileSize, _width, _height)) { BS_LOG_ERRORLN("Could not read image properties."); delete[] pFileData; return; } // Das Bild dekomprimieren - if (!PNGLoader::decodeImage(pFileData, fileSize, GraphicEngine::CF_ARGB32, _data, _width, _height, pitch)) { + if (!PNGLoader::decodeImage(pFileData, fileSize, _data, _width, _height, pitch)) { BS_LOG_ERRORLN("Could not decode image."); delete[] pFileData; return; |