aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-02-03 22:05:22 +0000
committerMartin Kiewitz2010-02-03 22:05:22 +0000
commitd09d37ff4eac6eef70802cba09ff1502f88d49d5 (patch)
tree4563ff1b6590040365ad2f68569a21db876d97c5 /engines
parentda771b91e6144f0c50c22c643edd998f32c12ac5 (diff)
downloadscummvm-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.cpp4
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);