From 7c1b37e150e154a8259e8bc820c6af3ae2a5e7c9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 20 Sep 2010 13:34:12 +0000 Subject: SWORD25: Fix transparency effects svn-id: r53375 --- engines/sword25/gfx/image/renderedimage.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines') 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; -- cgit v1.2.3