diff options
author | Johannes Schickel | 2015-12-14 02:14:13 +0100 |
---|---|---|
committer | Johannes Schickel | 2015-12-14 02:15:28 +0100 |
commit | f2926412fe7966bc34ceea1f87f2a4dae51df2eb (patch) | |
tree | dacab24d01a26190d97b9eee025519e535941b52 | |
parent | 431d33b119301b8dc2fc71fa42b9c53a04c32d1b (diff) | |
download | scummvm-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.cpp | 2 |
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; |