diff options
author | Martin Kiewitz | 2010-01-29 00:03:10 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-29 00:03:10 +0000 |
commit | 981252b1fefacd9837001748e6701f4ccce109ec (patch) | |
tree | 7a9223d41640e49c60fbe31d1fe2dd36dd9e71d0 /engines/sci/graphics/view.cpp | |
parent | 39ebb168a1e891e89559f40e039ac3f7a779bad1 (diff) | |
download | scummvm-rg350-981252b1fefacd9837001748e6701f4ccce109ec.tar.gz scummvm-rg350-981252b1fefacd9837001748e6701f4ccce109ec.tar.bz2 scummvm-rg350-981252b1fefacd9837001748e6701f4ccce109ec.zip |
SCI: view class fix for hires views that are larger than 64k (fixes kq7 cel corruption)
svn-id: r47661
Diffstat (limited to 'engines/sci/graphics/view.cpp')
-rw-r--r-- | engines/sci/graphics/view.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp index dcc384148a..29a65aca88 100644 --- a/engines/sci/graphics/view.cpp +++ b/engines/sci/graphics/view.cpp @@ -212,8 +212,8 @@ void View::initData(GuiResourceId resourceId) { cel->displaceY = READ_LE_UINT16(celData + 6); cel->clearKey = celData[8]; cel->offsetEGA = 0; - cel->offsetRLE = READ_LE_UINT16(celData + 24); - cel->offsetLiteral = READ_LE_UINT16(celData + 28); + cel->offsetRLE = READ_LE_UINT32(celData + 24); + cel->offsetLiteral = READ_LE_UINT32(celData + 28); cel->rawBitmap = 0; if (_loop[loopNo].mirrorFlag) cel->displaceX = -cel->displaceX; |