aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-11 20:31:12 +0000
committerMartin Kiewitz2010-01-11 20:31:12 +0000
commit3145ee5379044785fde3bc897b46f236d5797be9 (patch)
tree0ff2dae7170677a317b149f23c610f0b70442399
parent59d4f14f391f7b7301e800b27750a3fc61212134 (diff)
downloadscummvm-rg350-3145ee5379044785fde3bc897b46f236d5797be9.tar.gz
scummvm-rg350-3145ee5379044785fde3bc897b46f236d5797be9.tar.bz2
scummvm-rg350-3145ee5379044785fde3bc897b46f236d5797be9.zip
SCI: changed displaceY and displaceX for cels to int16, also inserted cast to signed char for sci1 displaceX - should fix wii flickering and incorrect cel placement problems
svn-id: r47257
-rw-r--r--engines/sci/graphics/view.cpp2
-rw-r--r--engines/sci/graphics/view.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp
index b93258489d..ffa97adb62 100644
--- a/engines/sci/graphics/view.cpp
+++ b/engines/sci/graphics/view.cpp
@@ -143,7 +143,7 @@ void View::initData(GuiResourceId resourceId) {
cel = &_loop[loopNo].cel[celNo];
cel->width = READ_LE_UINT16(celData);
cel->height = READ_LE_UINT16(celData + 2);
- cel->displaceX = celData[4];
+ cel->displaceX = (signed char)celData[4];
cel->displaceY = celData[5];
cel->clearKey = celData[6];
if (isEGA) {
diff --git a/engines/sci/graphics/view.h b/engines/sci/graphics/view.h
index 5a0791a2a4..f339ca077e 100644
--- a/engines/sci/graphics/view.h
+++ b/engines/sci/graphics/view.h
@@ -30,8 +30,8 @@ namespace Sci {
struct CelInfo {
int16 width, height;
- char displaceX;
- byte displaceY;
+ int16 displaceX;
+ int16 displaceY;
byte clearKey;
uint16 offsetEGA;
uint16 offsetRLE;