aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2003-05-19 09:02:16 +0000
committerJonathan Gray2003-05-19 09:02:16 +0000
commit12ff6c4f992034c1a59f935d8882c9d41e37d0b4 (patch)
treef3f94be5db3b1609db8100e726d166142ce18e5f
parent682d88cf71e392a84327c1854845b2268c2ce10b (diff)
downloadscummvm-rg350-12ff6c4f992034c1a59f935d8882c9d41e37d0b4.tar.gz
scummvm-rg350-12ff6c4f992034c1a59f935d8882c9d41e37d0b4.tar.bz2
scummvm-rg350-12ff6c4f992034c1a59f935d8882c9d41e37d0b4.zip
correct transparency colour for humongous games when using akos16
svn-id: r7676
-rw-r--r--scumm/akos.cpp5
1 files 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) {