diff options
author | Martin Kiewitz | 2010-08-10 18:00:27 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-10 18:00:27 +0000 |
commit | 9be20d5f0a5d9cfd433ba89f25d321efd82b0a7f (patch) | |
tree | 80b66323f847e94b8a33da905e687b7cddb3b82c /engines/sci/graphics | |
parent | a201b2e506be4adbacb0b7ffa9d40a94a4842e3e (diff) | |
download | scummvm-rg350-9be20d5f0a5d9cfd433ba89f25d321efd82b0a7f.tar.gz scummvm-rg350-9be20d5f0a5d9cfd433ba89f25d321efd82b0a7f.tar.bz2 scummvm-rg350-9be20d5f0a5d9cfd433ba89f25d321efd82b0a7f.zip |
SCI: adding displaceY adjust for sci1.1 views
sierra sci did this in their getCelRect(), we are doing it while loading, fixes laura bow not appearing in taxi (bug #3041220)
svn-id: r51955
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/view.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp index 1c865f6bcf..d517019fd3 100644 --- a/engines/sci/graphics/view.cpp +++ b/engines/sci/graphics/view.cpp @@ -256,6 +256,8 @@ void GfxView::initData(GuiResourceId resourceId) { cel->scriptHeight = cel->height = READ_SCI11ENDIAN_UINT16(celData + 2); cel->displaceX = READ_SCI11ENDIAN_UINT16(celData + 4); cel->displaceY = READ_SCI11ENDIAN_UINT16(celData + 6); + if (cel->displaceY < 0) + cel->displaceY += 255; // sierra did this adjust in their getCelRect() assert(cel->width && cel->height); |