diff options
author | md5 | 2011-05-26 12:29:51 +0300 |
---|---|---|
committer | md5 | 2011-05-26 12:29:51 +0300 |
commit | 62c026d3b6a17ab3e7634cf3d4e5b63bbf0aa7eb (patch) | |
tree | eedcb53d6c996a5d91fd996b70a3039a02d6e4e8 /engines/sword25/gfx/image/swimage.cpp | |
parent | a654115f1a9a1497ee7d73a3c861e4f37ab1e081 (diff) | |
download | scummvm-rg350-62c026d3b6a17ab3e7634cf3d4e5b63bbf0aa7eb.tar.gz scummvm-rg350-62c026d3b6a17ab3e7634cf3d4e5b63bbf0aa7eb.tar.bz2 scummvm-rg350-62c026d3b6a17ab3e7634cf3d4e5b63bbf0aa7eb.zip |
SWORD25: Merged the PNG and thumbnail decoding code into a common class
Diffstat (limited to 'engines/sword25/gfx/image/swimage.cpp')
-rw-r--r-- | engines/sword25/gfx/image/swimage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/gfx/image/swimage.cpp b/engines/sword25/gfx/image/swimage.cpp index 0978eb5ac1..0b9cc11df2 100644 --- a/engines/sword25/gfx/image/swimage.cpp +++ b/engines/sword25/gfx/image/swimage.cpp @@ -30,7 +30,7 @@ */ #include "sword25/package/packagemanager.h" -#include "sword25/gfx/image/pngloader.h" +#include "sword25/gfx/image/imgloader.h" #include "sword25/gfx/image/swimage.h" namespace Sword25 { @@ -56,7 +56,7 @@ SWImage::SWImage(const Common::String &filename, bool &result) : // Uncompress the image int pitch; byte *pUncompressedData; - if (!PNGLoader::decodeImage(pFileData, fileSize, pUncompressedData, _width, _height, pitch)) { + if (!ImgLoader::decodePNGImage(pFileData, fileSize, pUncompressedData, _width, _height, pitch)) { error("Could not decode image."); return; } |