diff options
-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; |