diff options
-rw-r--r-- | engines/scumm/he/wiz_he.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp index 533382a6c4..2405bebe9f 100644 --- a/engines/scumm/he/wiz_he.cpp +++ b/engines/scumm/he/wiz_he.cpp @@ -23,6 +23,8 @@ #include "common/stdafx.h" +#include "common/util.h" + #include "scumm/he/intern_he.h" #include "scumm/resource.h" #include "scumm/scumm.h" @@ -420,7 +422,7 @@ void Wiz::copyWizImageWithMask(uint8 *dst, const uint8 *src, int dstw, int dsth, while (h--) { xoff = srcRect.left; w = srcRect.width(); - mask = 1 << (7 - dstRect.left); + mask = (0x80 >> (dstRect.left & 7)); off = READ_LE_UINT16(dataPtr); dataPtr += 2; dstPtrNext = dstPtr + dstw; dataPtrNext = dataPtr + off; |