diff options
author | Eugene Sandulenko | 2010-09-20 13:34:12 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-13 00:00:20 +0000 |
commit | 7c1b37e150e154a8259e8bc820c6af3ae2a5e7c9 (patch) | |
tree | 42a0c285f813ab012008888d234e7e72dc00bc49 /engines/sword25/gfx | |
parent | 3e84d4fe73ac36bcfb36bbe8a26ce99ab71e92db (diff) | |
download | scummvm-rg350-7c1b37e150e154a8259e8bc820c6af3ae2a5e7c9.tar.gz scummvm-rg350-7c1b37e150e154a8259e8bc820c6af3ae2a5e7c9.tar.bz2 scummvm-rg350-7c1b37e150e154a8259e8bc820c6af3ae2a5e7c9.zip |
SWORD25: Fix transparency effects
svn-id: r53375
Diffstat (limited to 'engines/sword25/gfx')
-rw-r--r-- | engines/sword25/gfx/image/renderedimage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sword25/gfx/image/renderedimage.cpp b/engines/sword25/gfx/image/renderedimage.cpp index 5ba31c4835..e6afffe3b0 100644 --- a/engines/sword25/gfx/image/renderedimage.cpp +++ b/engines/sword25/gfx/image/renderedimage.cpp @@ -275,6 +275,10 @@ bool RenderedImage::blit(int posX, int posY, int flipping, Common::Rect *pPartRe int a = in[3]; in += inStep; + if (ca != 255) { + a = a * ca >> 8; + } + switch (a) { case 0: // Full transparency out += 4; |