diff options
-rw-r--r-- | engines/sci/graphics/view.cpp | 2 | ||||
-rw-r--r-- | 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; |