aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/costume.cpp1
-rw-r--r--scumm/gfx.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp
index ca296f3d7a..bf7c59e77d 100644
--- a/scumm/costume.cpp
+++ b/scumm/costume.cpp
@@ -273,6 +273,7 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) {
CHECK_HEAP
if (_loaded._format == 0x57) {
+ v1.mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + v1.y * _numStrips;
// The v1 costume renderer needs the actor number, which is
// the same thing as the costume renderer's _dirty_id.
procC64(_dirty_id);
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index d56c22904b..70a557f1c0 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1241,7 +1241,7 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi
#if 0
// HACK: blit mask(s) onto normal screen. Useful to debug masking
for (i = 0; i < numzbuf; i++) {
- mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + stripnr + _imgBufOffs[i] + (y * _numStrips);
+ mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + x + _imgBufOffs[i] + (y * _numStrips);
byte *dst = backbuff_ptr;
byte *dst2 = bgbak_ptr;
for (int h = 0; h < height; h++) {