aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/animation_he.cpp
diff options
context:
space:
mode:
authorTravis Howell2009-06-06 07:22:19 +0000
committerTravis Howell2009-06-06 07:22:19 +0000
commitf379d7fe1a2b261dbdfbd4c152fb2ff8d7f18277 (patch)
treecfe8aa67112bd2f78cf6a83079bd392c2f9b3137 /engines/scumm/he/animation_he.cpp
parent56e5920bba753820c457c078237a8c06241302ed (diff)
downloadscummvm-rg350-f379d7fe1a2b261dbdfbd4c152fb2ff8d7f18277.tar.gz
scummvm-rg350-f379d7fe1a2b261dbdfbd4c152fb2ff8d7f18277.tar.bz2
scummvm-rg350-f379d7fe1a2b261dbdfbd4c152fb2ff8d7f18277.zip
Add initial support for copyMaskWizImage, to fix videos in later Blue's Clues games.
svn-id: r41211
Diffstat (limited to 'engines/scumm/he/animation_he.cpp')
-rw-r--r--engines/scumm/he/animation_he.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/scumm/he/animation_he.cpp b/engines/scumm/he/animation_he.cpp
index 5983df2308..92b72bd9be 100644
--- a/engines/scumm/he/animation_he.cpp
+++ b/engines/scumm/he/animation_he.cpp
@@ -75,9 +75,10 @@ void MoviePlayer::copyFrameToBuffer(byte *dst, uint x, uint y, uint pitch) {
if (_vm->_game.features & GF_16BIT_COLOR) {
dst += y * pitch + x * 2;
do {
- for (uint i = 0; i < w; i++)
- WRITE_UINT16(dst + i * 2, src[i]);
-
+ for (uint i = 0; i < w; i++) {
+ uint16 col = READ_LE_UINT16(_vm->_hePalettes + _vm->_hePaletteSlot + 768 + src[i] * 2);
+ WRITE_UINT16(dst + i * 2, col);
+ }
dst += pitch;
src += w;
} while (--h);