aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-08-19 07:29:15 +0000
committerPaweł Kołodziejski2003-08-19 07:29:15 +0000
commit61c320d5875866f295724db4e033838dd02282cc (patch)
treea7eb54b0947ef823d21cdf25e51a1fda3e193502
parenta34f8895cb160242eecb855500855f407920ca52 (diff)
downloadscummvm-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.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++) {