diff options
author | Travis Howell | 2006-02-25 01:02:07 +0000 |
---|---|---|
committer | Travis Howell | 2006-02-25 01:02:07 +0000 |
commit | a0b7c01762ccb5e08b3586ffad9cf3203757398f (patch) | |
tree | 33f734ab8531dfaf01aeb6bdf0be430893d1efde /engines/scumm/he/wiz_he.cpp | |
parent | 275344a9316251acefdba6053861ec13d812d813 (diff) | |
download | scummvm-rg350-a0b7c01762ccb5e08b3586ffad9cf3203757398f.tar.gz scummvm-rg350-a0b7c01762ccb5e08b3586ffad9cf3203757398f.tar.bz2 scummvm-rg350-a0b7c01762ccb5e08b3586ffad9cf3203757398f.zip |
Adjust masking in copyWizImageWithMask() to match ScummVM, wizImages masking works fine now
svn-id: r20858
Diffstat (limited to 'engines/scumm/he/wiz_he.cpp')
-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; |