From ef671f20b108de79c006cdc95fc6ee613e46ab98 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 14 Sep 2012 03:35:18 +0300 Subject: 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 --- engines/hugo/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/hugo') 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; } -- cgit v1.2.3