aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/gfx')
-rw-r--r--engines/sword25/gfx/opengl/glimage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/gfx/opengl/glimage.cpp b/engines/sword25/gfx/opengl/glimage.cpp
index 7a54c0b548..961215b4d4 100644
--- a/engines/sword25/gfx/opengl/glimage.cpp
+++ b/engines/sword25/gfx/opengl/glimage.cpp
@@ -229,13 +229,13 @@ bool GLImage::Blit(int PosX, int PosY, int Flipping, Common::Rect *pPartRect, un
*out++ = a;
break;
default: // alpha blending
- *out = (byte)(((b - *out) * a + *out) >> 8);
+ *out += (byte)(((b - *out) * a) >> 8);
out++;
- *out = (byte)(((g - *out) * a + *out) >> 8);
+ *out += (byte)(((g - *out) * a) >> 8);
out++;
- *out = (byte)(((r - *out) * a + *out) >> 8);
+ *out += (byte)(((r - *out) * a) >> 8);
out++;
- *out = a;
+ *out = 255;
out++;
}
}