From 12ff6c4f992034c1a59f935d8882c9d41e37d0b4 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 19 May 2003 09:02:16 +0000 Subject: correct transparency colour for humongous games when using akos16 svn-id: r7676 --- scumm/akos.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 9bca612ce3..bf4f4500cd 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -1230,6 +1230,7 @@ void AkosRenderer::codec16() { int32 maxw = outwidth - 1; int32 maxh = outheight - 1; int32 tmp_x, tmp_y; + byte transparency = (_vm->_features & GF_HUMONGOUS) ? 0 : 255; /* tmp_x = clip_left; @@ -1324,13 +1325,13 @@ void AkosRenderer::codec16() { byte *dest = outptr + width_unk + height_unk * _vm->_screenWidth; if (_zbuf == 0) { - akos16Decompress(dest, pitch, srcptr, cur_x, out_height, dir, numskip_before, numskip_after, 255); + akos16Decompress(dest, pitch, srcptr, cur_x, out_height, dir, numskip_before, numskip_after, transparency); return; } byte *ptr = _vm->_screenStartStrip + _vm->getResourceAddress(rtBuffer, 9) + _vm->gdi._imgBufOffs[_zbuf]; ptr += _numStrips * clip_top + (clip_left / 8); - akos16DecompressMask(dest, pitch, srcptr, cur_x, out_height, dir, numskip_before, numskip_after, 255, ptr, clip_left / 8); + akos16DecompressMask(dest, pitch, srcptr, cur_x, out_height, dir, numskip_before, numskip_after, transparency, ptr, clip_left / 8); } bool Scumm::akos_increaseAnims(byte *akos, Actor *a) { -- cgit v1.2.3