small changes to v1 mask

svn-id: r9779
This commit is contained in:
Paweł Kołodziejski 2003-08-19 07:29:15 +00:00
parent a34f8895cb
commit 61c320d587
2 changed files with 2 additions and 1 deletions

View file

@ -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);

View file

@ -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++) {