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/swimage.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/swimage.cpp')
-rw-r--r-- | engines/sword25/gfx/image/swimage.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/sword25/gfx/image/swimage.cpp b/engines/sword25/gfx/image/swimage.cpp index 2ea077f93e..f0a8899bb6 100644 --- a/engines/sword25/gfx/image/swimage.cpp +++ b/engines/sword25/gfx/image/swimage.cpp @@ -59,16 +59,15 @@ SWImage::SWImage(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."); return; } // Das Bild dekomprimieren byte *pUncompressedData; - if (!PNGLoader::decodeImage(pFileData, fileSize, GraphicEngine::CF_ARGB32, pUncompressedData, _width, _height, pitch)) { + if (!PNGLoader::decodeImage(pFileData, fileSize, pUncompressedData, _width, _height, pitch)) { BS_LOG_ERRORLN("Could not decode image."); return; } |