diff options
author | Paweł Kołodziejski | 2003-08-19 07:29:15 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-08-19 07:29:15 +0000 |
commit | 61c320d5875866f295724db4e033838dd02282cc (patch) | |
tree | a7eb54b0947ef823d21cdf25e51a1fda3e193502 | |
parent | a34f8895cb160242eecb855500855f407920ca52 (diff) | |
download | scummvm-rg350-61c320d5875866f295724db4e033838dd02282cc.tar.gz scummvm-rg350-61c320d5875866f295724db4e033838dd02282cc.tar.bz2 scummvm-rg350-61c320d5875866f295724db4e033838dd02282cc.zip |
small changes to v1 mask
svn-id: r9779
-rw-r--r-- | scumm/costume.cpp | 1 | ||||
-rw-r--r-- | scumm/gfx.cpp | 2 |
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++) { |