aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorMartin Kiewitz2010-08-10 18:00:27 +0000
committerMartin Kiewitz2010-08-10 18:00:27 +0000
commit9be20d5f0a5d9cfd433ba89f25d321efd82b0a7f (patch)
tree80b66323f847e94b8a33da905e687b7cddb3b82c /engines/sci/graphics
parenta201b2e506be4adbacb0b7ffa9d40a94a4842e3e (diff)
downloadscummvm-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.cpp2
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);