aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/file.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2012-09-14 03:35:18 +0300
committerFilippos Karapetis2012-09-14 03:35:18 +0300
commitef671f20b108de79c006cdc95fc6ee613e46ab98 (patch)
tree6879007cf2d4d3ee52559369631c0f023b21872e /engines/hugo/file.cpp
parentfb6a5a140d507b1160f5553fb45ca5e56a2bbe02 (diff)
downloadscummvm-rg350-ef671f20b108de79c006cdc95fc6ee613e46ab98.tar.gz
scummvm-rg350-ef671f20b108de79c006cdc95fc6ee613e46ab98.tar.bz2
scummvm-rg350-ef671f20b108de79c006cdc95fc6ee613e46ab98.zip
HUGO: Use surface width instead of its pitch when copying to raw memory blobs
This is according to wjp's suggestion - the pitch didn't make sense there
Diffstat (limited to 'engines/hugo/file.cpp')
-rw-r--r--engines/hugo/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp
index 5945579ffb..1758f3f6a5 100644
--- a/engines/hugo/file.cpp
+++ b/engines/hugo/file.cpp
@@ -128,7 +128,7 @@ Seq *FileManager::readPCX(Common::SeekableReadStream &f, Seq *seqPtr, byte *imag
seqPtr->_imagePtr = imagePtr;
for (uint16 y = 0; y < pcxSurface->h; y++)
- memcpy(imagePtr + y * pcxSurface->pitch, pcxSurface->getBasePtr(0, y), pcxSurface->w);
+ memcpy(imagePtr + y * pcxSurface->w, pcxSurface->getBasePtr(0, y), pcxSurface->w);
return seqPtr;
}