aboutsummaryrefslogtreecommitdiff
path: root/engines/m4
diff options
context:
space:
mode:
authorPaul Gilbert2010-06-11 11:08:37 +0000
committerPaul Gilbert2010-06-11 11:08:37 +0000
commite572267a05674b4b462602781be58f813c84479d (patch)
tree8c9a5e87f50afd4ba1948bf71f5dfcad662826c4 /engines/m4
parentef34896dce9188591e8ddd6e8eed543febd70b87 (diff)
downloadscummvm-rg350-e572267a05674b4b462602781be58f813c84479d.tar.gz
scummvm-rg350-e572267a05674b4b462602781be58f813c84479d.tar.bz2
scummvm-rg350-e572267a05674b4b462602781be58f813c84479d.zip
Bugfixes to correctly scroll the background during animations
svn-id: r49596
Diffstat (limited to 'engines/m4')
-rw-r--r--engines/m4/animation.cpp2
-rw-r--r--engines/m4/graphics.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/m4/animation.cpp b/engines/m4/animation.cpp
index dacfd8c581..adb802ee0e 100644
--- a/engines/m4/animation.cpp
+++ b/engines/m4/animation.cpp
@@ -87,7 +87,7 @@ void MadsAnimation::initialise(const Common::String &filename, uint16 flags, M4S
animStream->skip(2);
_field12 = animStream->readUint16LE() != 0;
_spriteListIndex = animStream->readUint16LE();
- _scrollX = animStream->readUint16LE();
+ _scrollX = animStream->readSint16LE();
_scrollY = animStream->readSint16LE();
animStream->skip(10);
diff --git a/engines/m4/graphics.cpp b/engines/m4/graphics.cpp
index f332c8b06c..dd18972eec 100644
--- a/engines/m4/graphics.cpp
+++ b/engines/m4/graphics.cpp
@@ -769,7 +769,7 @@ void M4Surface::scrollX(int xAmount) {
return;
byte buffer[80];
- int direction = (xAmount > 0) ? 1 : -1;
+ int direction = (xAmount > 0) ? -1 : 1;
int xSize = ABS(xAmount);
assert(xSize <= 80);