diff options
author | Martin Kiewitz | 2010-02-03 22:05:22 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-02-03 22:05:22 +0000 |
commit | d09d37ff4eac6eef70802cba09ff1502f88d49d5 (patch) | |
tree | 4563ff1b6590040365ad2f68569a21db876d97c5 /engines | |
parent | da771b91e6144f0c50c22c643edd998f32c12ac5 (diff) | |
download | scummvm-rg350-d09d37ff4eac6eef70802cba09ff1502f88d49d5.tar.gz scummvm-rg350-d09d37ff4eac6eef70802cba09ff1502f88d49d5.tar.bz2 scummvm-rg350-d09d37ff4eac6eef70802cba09ff1502f88d49d5.zip |
SCI: fixing picture corruption in sci32 (e.g. sq6 picture 430, kq7 after intro)
svn-id: r47866
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/picture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |