diff options
author | Filippos Karapetis | 2012-09-14 03:35:18 +0300 |
---|---|---|
committer | Filippos Karapetis | 2012-09-14 03:35:18 +0300 |
commit | ef671f20b108de79c006cdc95fc6ee613e46ab98 (patch) | |
tree | 6879007cf2d4d3ee52559369631c0f023b21872e /engines/hugo | |
parent | fb6a5a140d507b1160f5553fb45ca5e56a2bbe02 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/hugo/file.cpp | 2 |
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; } |