aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
diff options
context:
space:
mode:
authorEugene Sandulenko2010-09-13 20:57:14 +0000
committerEugene Sandulenko2010-10-12 23:46:02 +0000
commit0716b8c1bb597e5144b6693f06dc37a5d0b9eb7a (patch)
treee899a98238fb61d3d5f0206af896a5b31a89e882 /engines/sword25
parent099406e15e4f00ddfb33272046758a0f2ff3fcc1 (diff)
downloadscummvm-rg350-0716b8c1bb597e5144b6693f06dc37a5d0b9eb7a.tar.gz
scummvm-rg350-0716b8c1bb597e5144b6693f06dc37a5d0b9eb7a.tar.bz2
scummvm-rg350-0716b8c1bb597e5144b6693f06dc37a5d0b9eb7a.zip
SWORD25: Fix vectorimage transparency
svn-id: r53343
Diffstat (limited to 'engines/sword25')
-rw-r--r--engines/sword25/gfx/image/vectorimagerenderer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sword25/gfx/image/vectorimagerenderer.cpp b/engines/sword25/gfx/image/vectorimagerenderer.cpp
index a8820d9121..4a791eb80b 100644
--- a/engines/sword25/gfx/image/vectorimagerenderer.cpp
+++ b/engines/sword25/gfx/image/vectorimagerenderer.cpp
@@ -67,7 +67,8 @@ void art_rgb_run_alpha1(art_u8 *buf, art_u8 r, art_u8 g, art_u8 b, int alpha, in
v = *buf;
*buf++ = v + (((r - v) * alpha + 0x80) >> 8);
v = *buf;
- *buf++ = v + (((alpha - v) * alpha + 0x80) >> 8);
+ // FIXME: Is this correct?
+ *buf++ = MIN(v + alpha, 0xff);
}
}