aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/image/imgloader.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:42:32 +0200
committerJohannes Schickel2013-08-03 04:02:52 +0200
commit1550e9804b883afd4eb32eaea77cd81cbef75953 (patch)
tree977ecf0f8e3d925e81374d8bfc42356e060bc89b /engines/sword25/gfx/image/imgloader.cpp
parent5f8bce839f1a463f0de0ba5e116d93d802fb8ad0 (diff)
downloadscummvm-rg350-1550e9804b883afd4eb32eaea77cd81cbef75953.tar.gz
scummvm-rg350-1550e9804b883afd4eb32eaea77cd81cbef75953.tar.bz2
scummvm-rg350-1550e9804b883afd4eb32eaea77cd81cbef75953.zip
SWORD25: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines/sword25/gfx/image/imgloader.cpp')
-rw-r--r--engines/sword25/gfx/image/imgloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/gfx/image/imgloader.cpp b/engines/sword25/gfx/image/imgloader.cpp
index 6a458a0ae1..9006a596b4 100644
--- a/engines/sword25/gfx/image/imgloader.cpp
+++ b/engines/sword25/gfx/image/imgloader.cpp
@@ -50,7 +50,7 @@ bool ImgLoader::decodePNGImage(const byte *fileDataPtr, uint fileSize, byte *&un
width = pngSurface->w;
height = pngSurface->h;
uncompressedDataPtr = new byte[pngSurface->pitch * pngSurface->h];
- memcpy(uncompressedDataPtr, (byte *)pngSurface->getBasePtr(0, 0), pngSurface->pitch * pngSurface->h);
+ memcpy(uncompressedDataPtr, (byte *)pngSurface->getPixels(), pngSurface->pitch * pngSurface->h);
pngSurface->free();
delete pngSurface;