aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/image/renderedimage.cpp
diff options
context:
space:
mode:
authorMax Horn2010-10-24 01:32:15 +0000
committerMax Horn2010-10-24 01:32:15 +0000
commit7cc8811a5c9b63703c2131841745cd5b7e5f009a (patch)
tree16a320c51b97695e70d4abf2a0b4886d0dee35e6 /engines/sword25/gfx/image/renderedimage.cpp
parent1e16d576ca4798bd1fac640330c5e2faf176658a (diff)
downloadscummvm-rg350-7cc8811a5c9b63703c2131841745cd5b7e5f009a.tar.gz
scummvm-rg350-7cc8811a5c9b63703c2131841745cd5b7e5f009a.tar.bz2
scummvm-rg350-7cc8811a5c9b63703c2131841745cd5b7e5f009a.zip
SWORD25: Merge classes PNGLoader, ImageLoader and ImageLoaderManager
This looses some flexibility when it comes to supporting other image formats. But since the game does not use other image formats, this seems rather irrelevant, compared to how much simpler the code now is. svn-id: r53755
Diffstat (limited to 'engines/sword25/gfx/image/renderedimage.cpp')
-rw-r--r--engines/sword25/gfx/image/renderedimage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword25/gfx/image/renderedimage.cpp b/engines/sword25/gfx/image/renderedimage.cpp
index 85c5dfc485..a989b2be60 100644
--- a/engines/sword25/gfx/image/renderedimage.cpp
+++ b/engines/sword25/gfx/image/renderedimage.cpp
@@ -37,7 +37,7 @@
// -----------------------------------------------------------------------------
#include "sword25/package/packagemanager.h"
-#include "sword25/gfx/image/imageloader.h"
+#include "sword25/gfx/image/pngloader.h"
#include "sword25/gfx/image/renderedimage.h"
#include "common/system.h"
@@ -72,14 +72,14 @@ RenderedImage::RenderedImage(const Common::String &filename, bool &result) :
// Bildeigenschaften bestimmen
GraphicEngine::COLOR_FORMATS colorFormat;
int pitch;
- if (!ImageMan.extractImageProperties(pFileData, fileSize, colorFormat, _width, _height)) {
+ if (!PNGLoader::imageProperties(pFileData, fileSize, colorFormat, _width, _height)) {
BS_LOG_ERRORLN("Could not read image properties.");
delete[] pFileData;
return;
}
// Das Bild dekomprimieren
- if (!ImageMan.loadImage(pFileData, fileSize, GraphicEngine::CF_ARGB32, _data, _width, _height, pitch)) {
+ if (!PNGLoader::decodeImage(pFileData, fileSize, GraphicEngine::CF_ARGB32, _data, _width, _height, pitch)) {
BS_LOG_ERRORLN("Could not decode image.");
delete[] pFileData;
return;