aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2010-08-08 01:08:17 +0000
committerSven Hesse2010-08-08 01:08:17 +0000
commit1151676d8215f411718a28f2d2f58961560efbd1 (patch)
treeeb90f9b6522cd02f7ca1694f1f73e5fa37741419 /engines
parent8186214bc9348514c5020f4449cea2ecfb599a8a (diff)
downloadscummvm-rg350-1151676d8215f411718a28f2d2f58961560efbd1.tar.gz
scummvm-rg350-1151676d8215f411718a28f2d2f58961560efbd1.tar.bz2
scummvm-rg350-1151676d8215f411718a28f2d2f58961560efbd1.zip
VIDEO: Use proper palettes in CoktelDecoder
Not just the 6 bits per color component used in VGA svn-id: r51921
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/videoplayer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index 0d72751c87..9e49bfc092 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -749,8 +749,11 @@ void VideoPlayer::copyPalette(const Video &video, int16 palStart, int16 palEnd)
if (palEnd < 0)
palEnd = 255;
- memcpy(((char *)(_vm->_global->_pPaletteDesc->vgaPal)) + palStart * 3,
- video.decoder->getPalette() + palStart * 3, (palEnd - palStart + 1) * 3);
+ palStart = palStart * 3;
+ palEnd = (palEnd + 1) * 3;
+
+ for (int i = palStart; i <= palEnd; i++)
+ ((char *)(_vm->_global->_pPaletteDesc->vgaPal))[i] = video.decoder->getPalette()[i] >> 2;
}
} // End of namespace Gob