aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/gfx.cpp
diff options
context:
space:
mode:
authorVincent Hamm2012-08-17 21:38:20 -0700
committerD G Turner2012-08-20 01:48:20 +0100
commitbd6751cb4a2cb5f34697392a82e8d5ab35a6a006 (patch)
tree2f895e1957d154bd2b3860b4f99739cb4172d1dc /engines/cine/gfx.cpp
parenteccb55570e3ed27276573b23093ffedcf3e794cc (diff)
downloadscummvm-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.cpp6
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;