diff options
author | Vincent Hamm | 2012-08-17 21:38:20 -0700 |
---|---|---|
committer | D G Turner | 2012-08-20 01:48:20 +0100 |
commit | bd6751cb4a2cb5f34697392a82e8d5ab35a6a006 (patch) | |
tree | 2f895e1957d154bd2b3860b4f99739cb4172d1dc /engines/cine/gfx.cpp | |
parent | eccb55570e3ed27276573b23093ffedcf3e794cc (diff) | |
download | scummvm-rg350-bd6751cb4a2cb5f34697392a82e8d5ab35a6a006.tar.gz scummvm-rg350-bd6751cb4a2cb5f34697392a82e8d5ab35a6a006.tar.bz2 scummvm-rg350-bd6751cb4a2cb5f34697392a82e8d5ab35a6a006.zip |
CINE: Fix drawing of sprite with mask.
Protects against cases where a non-existing script is referenced.
Diffstat (limited to 'engines/cine/gfx.cpp')
-rw-r--r-- | engines/cine/gfx.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp index cce8154d84..7a988227f6 100644 --- a/engines/cine/gfx.cpp +++ b/engines/cine/gfx.cpp @@ -1796,6 +1796,12 @@ void OSRenderer::drawSprite(overlay *overlayPtr, const byte *spritePtr, int16 wi if(pMask) { spritePtr = pMask; } + + // ignore transparent color in 1bpp + if (bpp == 1) { + transparentColor = 1; + } + { for (int i = 0; i < height; i++) { byte *destPtr = page + x + y * 320; |