aboutsummaryrefslogtreecommitdiff
path: root/scumm/smush
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-11-16 21:53:22 +0000
committerPaweł Kołodziejski2003-11-16 21:53:22 +0000
commit20672bd904a364860b6cdc172569ea2e8b0b88a6 (patch)
treeaa03673506630045dbf63091e38af8fec4de8814 /scumm/smush
parentb19119e89f06227ee60f7a715b20bffb25b6b459 (diff)
downloadscummvm-rg350-20672bd904a364860b6cdc172569ea2e8b0b88a6.tar.gz
scummvm-rg350-20672bd904a364860b6cdc172569ea2e8b0b88a6.tar.bz2
scummvm-rg350-20672bd904a364860b6cdc172569ea2e8b0b88a6.zip
codec1 is not bomp codec
svn-id: r11317
Diffstat (limited to 'scumm/smush')
-rw-r--r--scumm/smush/smush_player.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/scumm/smush/smush_player.cpp b/scumm/smush/smush_player.cpp
index d7ce370c9a..a6ad89ba08 100644
--- a/scumm/smush/smush_player.cpp
+++ b/scumm/smush/smush_player.cpp
@@ -685,6 +685,8 @@ void SmushPlayer::handleNewPalette(Chunk &b) {
setPalette(_pal);
}
+void smush_decode_codec1(byte *dst, byte *src, int height);
+
void SmushPlayer::handleFrameObject(Chunk &b) {
checkBlock(b, TYPE_FOBJ, 14);
if (_skipNext) {
@@ -720,17 +722,8 @@ void SmushPlayer::handleFrameObject(Chunk &b) {
switch (codec) {
case 1:
- bompDecodeLine(_dst, chunk_buffer, chunk_size);
case 3:
- // FIXME: I am not 100% sure if this is correct. I tried to test this,
- // but the only place I found codec 1 being used was in FT.
- // But either is the codec only used to encode all-black frames, or
- // smush_decode_codec1 already produced invalid (all-black?) output.
- //
- // BTW regarding codec 3: I haven't yet actually seen it being used,
- // but is it really identical to codec 1? Or isn't it maybe a
- // 'reverse' version (see also bompDecodeLineReverse).
- bompDecodeLineReverse(_dst, chunk_buffer, chunk_size);
+ smush_decode_codec1(_dst, chunk_buffer, _height);
break;
case 37:
_codec37.decode(_dst, chunk_buffer);