small changes to v1 mask
svn-id: r9779
This commit is contained in:
parent
a34f8895cb
commit
61c320d587
2 changed files with 2 additions and 1 deletions
|
@ -273,6 +273,7 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) {
|
||||||
CHECK_HEAP
|
CHECK_HEAP
|
||||||
|
|
||||||
if (_loaded._format == 0x57) {
|
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 v1 costume renderer needs the actor number, which is
|
||||||
// the same thing as the costume renderer's _dirty_id.
|
// the same thing as the costume renderer's _dirty_id.
|
||||||
procC64(_dirty_id);
|
procC64(_dirty_id);
|
||||||
|
|
|
@ -1241,7 +1241,7 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi
|
||||||
#if 0
|
#if 0
|
||||||
// HACK: blit mask(s) onto normal screen. Useful to debug masking
|
// HACK: blit mask(s) onto normal screen. Useful to debug masking
|
||||||
for (i = 0; i < numzbuf; i++) {
|
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 *dst = backbuff_ptr;
|
||||||
byte *dst2 = bgbak_ptr;
|
byte *dst2 = bgbak_ptr;
|
||||||
for (int h = 0; h < height; h++) {
|
for (int h = 0; h < height; h++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue