From 3145ee5379044785fde3bc897b46f236d5797be9 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Mon, 11 Jan 2010 20:31:12 +0000 Subject: 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 --- engines/sci/graphics/view.cpp | 2 +- engines/sci/graphics/view.h | 4 ++-- 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; -- cgit v1.2.3