From d09d37ff4eac6eef70802cba09ff1502f88d49d5 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Wed, 3 Feb 2010 22:05:22 +0000 Subject: SCI: fixing picture corruption in sci32 (e.g. sq6 picture 430, kq7 after intro) svn-id: r47866 --- engines/sci/graphics/picture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/sci/graphics/picture.cpp b/engines/sci/graphics/picture.cpp index a2dc25f797..965471bbaa 100644 --- a/engines/sci/graphics/picture.cpp +++ b/engines/sci/graphics/picture.cpp @@ -148,8 +148,8 @@ void SciGuiPicture::drawSci32Vga(int16 celNo) { } while (celCount > 0) { - cel_RlePos = READ_LE_UINT16(inbuffer + cel_headerPos + 24); - cel_LiteralPos = READ_LE_UINT16(inbuffer + cel_headerPos + 28); + cel_RlePos = READ_LE_UINT32(inbuffer + cel_headerPos + 24); + cel_LiteralPos = READ_LE_UINT32(inbuffer + cel_headerPos + 28); cel_relXpos = READ_LE_UINT16(inbuffer + cel_headerPos + 38); cel_relYpos = READ_LE_UINT16(inbuffer + cel_headerPos + 40); drawCelData(inbuffer, size, cel_headerPos, cel_RlePos, cel_LiteralPos, cel_relXpos, cel_relYpos, true); -- cgit v1.2.3