From fe94648dd652a8c7f40d1653e0753e9da04005dd Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Mon, 18 Aug 2003 20:28:57 +0000 Subject: fixed debug mode for mask maps svn-id: r9768 --- scumm/gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm') diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index fba3ded70b..91102ce7ff 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1232,10 +1232,10 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi } } -#if 0 +#if 1 // HACK: blit mask(s) onto normal screen. Useful to debug masking for (i = 0; i < numzbuf; i++) { - mask_ptr = _vm->getMaskBuffer(x, y, i); + mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + stripnr + _imgBufOffs[i] + (y * _numStrips); byte *dst = backbuff_ptr; byte *dst2 = bgbak_ptr; for (int h = 0; h < height; h++) { -- cgit v1.2.3