aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2015-12-14 02:14:13 +0100
committerJohannes Schickel2015-12-14 02:15:28 +0100
commitf2926412fe7966bc34ceea1f87f2a4dae51df2eb (patch)
treedacab24d01a26190d97b9eee025519e535941b52
parent431d33b119301b8dc2fc71fa42b9c53a04c32d1b (diff)
downloadscummvm-rg350-f2926412fe7966bc34ceea1f87f2a4dae51df2eb.tar.gz
scummvm-rg350-f2926412fe7966bc34ceea1f87f2a4dae51df2eb.tar.bz2
scummvm-rg350-f2926412fe7966bc34ceea1f87f2a4dae51df2eb.zip
GRAPHICS: Fix fast ALPHA_BINARY blitting with TransparentSurface.
This is a regression from 5d0f38d747e7583d0ca5959cd642468ba67cd04c and caused color glitches in Wintermute.
-rw-r--r--graphics/transparent_surface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/transparent_surface.cpp b/graphics/transparent_surface.cpp
index 992a5dc879..19e7655a93 100644
--- a/graphics/transparent_surface.cpp
+++ b/graphics/transparent_surface.cpp
@@ -116,7 +116,7 @@ void doBlitBinaryFast(byte *ino, byte *outo, uint32 width, uint32 height, uint32
in = ino;
for (uint32 j = 0; j < width; j++) {
uint32 pix = *(uint32 *)in;
- int a = (pix >> kAModShift) & 0xff;
+ int a = in[kAIndex];
if (a != 0) { // Full opacity (Any value not exactly 0 is Opaque here)
*(uint32 *)out = pix;