aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2014-01-21 00:50:24 +0100
committerEinar Johan Trøan Sømåen2014-01-21 01:32:40 +0100
commit4f4599b542257bf3fec95102fe1c964966ce508f (patch)
tree536c1e8c4f7f66906f1061e77804004684514e26
parent273974cca25bdce1727a6fda5bb405838703923c (diff)
downloadscummvm-rg350-4f4599b542257bf3fec95102fe1c964966ce508f.tar.gz
scummvm-rg350-4f4599b542257bf3fec95102fe1c964966ce508f.tar.bz2
scummvm-rg350-4f4599b542257bf3fec95102fe1c964966ce508f.zip
WINTERMUTE: Fix bug that prevented the opaque and binary blit speedups from working.
-rw-r--r--engines/wintermute/graphics/transparent_surface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp
index 053acf29e9..79722439bd 100644
--- a/engines/wintermute/graphics/transparent_surface.cpp
+++ b/engines/wintermute/graphics/transparent_surface.cpp
@@ -519,9 +519,9 @@ Common::Rect TransparentSurface::blit(Graphics::Surface &target, int posX, int p
byte *ino= (byte *)img->getBasePtr(xp, yp);
byte *outo = (byte *)target.getBasePtr(posX, posY);
- if (color == 0xFFFFFF && blendMode == BLEND_NORMAL && _alphaMode == ALPHA_OPAQUE) {
+ if (color == 0xFFFFFFFF && blendMode == BLEND_NORMAL && _alphaMode == ALPHA_OPAQUE) {
doBlitOpaqueFast(ino, outo, img->w, img->h, target.pitch, inStep, inoStep);
- } else if (color == 0xFFFFFF && blendMode == BLEND_NORMAL && _alphaMode == ALPHA_BINARY) {
+ } else if (color == 0xFFFFFFFF && blendMode == BLEND_NORMAL && _alphaMode == ALPHA_BINARY) {
doBlitBinaryFast(ino, outo, img->w, img->h, target.pitch, inStep, inoStep);
} else {
if (blendMode == BLEND_ADDITIVE) {