From f94f48ae2bdd3ad596c6bdf6a9875461079d4a7b Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 19 Nov 2014 22:59:34 +0100 Subject: AGOS: Fix invisibility in Amiga CD32 Simon the Sorcerer 1 demo This probably affects the full version as well, but I haven't verified that. Either way, the old code was obviously wrong while the new makes it look right to me. --- engines/agos/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp index 33145b7d0d..5a1f9f1917 100644 --- a/engines/agos/gfx.cpp +++ b/engines/agos/gfx.cpp @@ -547,7 +547,7 @@ void AGOSEngine_Simon1::drawMaskedImage(VC10_state *state) { if ((dst[count * 2] & 0xF0) == 0x20) dst[count * 2] = src[count * 2]; if (mask[count + state->x_skip] & 0x0F) - if ((dst[count * 2 + 1] & 0x0F) == 0x20) + if ((dst[count * 2 + 1] & 0xF0) == 0x20) dst[count * 2 + 1] = src[count * 2 + 1]; } else { /* no transparency */ -- cgit v1.2.3