aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2010-06-27 06:35:32 +0000
committerPaul Gilbert2010-06-27 06:35:32 +0000
commitc7682f5117c5286247fbaf50497c4b35e5f6817f (patch)
tree2aa70e23024618ae9891e80b695159e7dc017f9d /engines
parent9a8683ac656e37a62ecf483f635424cc559d397a (diff)
downloadscummvm-rg350-c7682f5117c5286247fbaf50497c4b35e5f6817f.tar.gz
scummvm-rg350-c7682f5117c5286247fbaf50497c4b35e5f6817f.tar.bz2
scummvm-rg350-c7682f5117c5286247fbaf50497c4b35e5f6817f.zip
Added proper conversion of message RGB colour values
svn-id: r50371
Diffstat (limited to 'engines')
-rw-r--r--engines/m4/animation.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/m4/animation.cpp b/engines/m4/animation.cpp
index fae21db072..4dc645991e 100644
--- a/engines/m4/animation.cpp
+++ b/engines/m4/animation.cpp
@@ -138,12 +138,12 @@ void MadsAnimation::initialise(const Common::String &filename, uint16 flags, M4S
rec.pos.x = animStream->readSint16LE();
rec.pos.y = animStream->readSint16LE();
rec.flags = animStream->readUint16LE();
- rec.rgb1.r = animStream->readByte();
- rec.rgb1.g = animStream->readByte();
- rec.rgb1.b = animStream->readByte();
- rec.rgb2.r = animStream->readByte();
- rec.rgb2.g = animStream->readByte();
- rec.rgb2.b = animStream->readByte();
+ rec.rgb1.r = animStream->readByte() << 2;
+ rec.rgb1.g = animStream->readByte() << 2;
+ rec.rgb1.b = animStream->readByte() << 2;
+ rec.rgb2.r = animStream->readByte() << 2;
+ rec.rgb2.g = animStream->readByte() << 2;
+ rec.rgb2.b = animStream->readByte() << 2;
animStream->skip(2); // Space for kernelMsgIndex
rec.kernelMsgIndex = -1;
animStream->skip(6);