diff options
author | Paweł Kołodziejski | 2002-10-24 06:28:54 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-10-24 06:28:54 +0000 |
commit | a125d1cc1a03a43b692391a34fb9a2dee36991a3 (patch) | |
tree | b444b33ee26c5f6eaa3a5697e9e48977d4e86a34 /scumm/akos.cpp | |
parent | fe7343deccef267fe699edb637eb032aec2ecc64 (diff) | |
download | scummvm-rg350-a125d1cc1a03a43b692391a34fb9a2dee36991a3.tar.gz scummvm-rg350-a125d1cc1a03a43b692391a34fb9a2dee36991a3.tar.bz2 scummvm-rg350-a125d1cc1a03a43b692391a34fb9a2dee36991a3.zip |
changed number strips to dynamic and increased arrays tdirty and bdirty to 80
svn-id: r5296
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r-- | scumm/akos.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 7e11e6d504..3bfa501356 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -296,7 +296,7 @@ void AkosRenderer::codec1_genericDecode() && (!v1.mask_ptr || !((mask[0] | mask[v1.imgbufoffs]) & maskbit))) { *dst = palette[color]; } - mask += 40; + mask += _numStrips; dst += outwidth; y++; } @@ -364,7 +364,7 @@ void AkosRenderer::codec1_spec1() pcolor = shadow_table[*dst]; *dst = pcolor; } - mask += 40; + mask += _numStrips; dst += outwidth; y++; } @@ -440,7 +440,7 @@ void AkosRenderer::codec1_spec3() *dst = pcolor; } } - mask += 40; + mask += _numStrips; dst += outwidth; y++; } @@ -789,7 +789,7 @@ void AkosRenderer::codec1() v1.mask_ptr = NULL; if (masking || charsetmask || shadow_mode) { - v1.mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + cur_y * 40 + _vm->_screenStartStrip; + v1.mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + cur_y * _numStrips + _vm->_screenStartStrip; v1.imgbufoffs = _vm->gdi._imgBufOffs[clipping]; if (!charsetmask && masking) { v1.mask_ptr += v1.imgbufoffs; @@ -947,7 +947,7 @@ void AkosRenderer::codec5() if (dst_x >= 0 && dst_x < _vm->_realWidth) { if (color != 255) { if (v1.mask_ptr) - mask = v1.mask_ptr + 40 * dst_y + (dst_x >> 3); + mask = v1.mask_ptr + _numStrips * dst_y + (dst_x >> 3); maskbit = revBitMask[dst_x & 7]; if (shadow_mode && color == 13) color = shadow_table[*d]; @@ -965,7 +965,7 @@ void AkosRenderer::codec5() if (dst_x >= 0 && dst_x < _vm->_realWidth) { if (color != 255) { if (v1.mask_ptr) - mask = v1.mask_ptr + 40 * dst_y + (dst_x >> 3); + mask = v1.mask_ptr + _numStrips * dst_y + (dst_x >> 3); maskbit = revBitMask[dst_x & 7]; if (shadow_mode && color == 13) color = shadow_table[*d]; @@ -1201,7 +1201,7 @@ void AkosRenderer::akos16DecompressMask(byte * dest, int32 pitch, byte * src, in akos16SkipData(numskip_before); } - maskpitch = ((uint)_vm->_realWidth / 8) + 1; + maskpitch = _numStrips + 1; while (t_height != 0) { akos16DecodeLine(tmp_buf, t_width, dir); @@ -1337,7 +1337,7 @@ void AkosRenderer::codec16() { } byte * ptr = _vm->_screenStartStrip + _vm->getResourceAddress(rtBuffer, 9) + _vm->gdi._imgBufOffs[clipping]; - ptr += ((_vm->_realWidth / 8) + 1) * clip_top + (clip_left / 8); + ptr += (_numStrips + 1) * clip_top + (clip_left / 8); akos16DecompressMask(dest, pitch, srcptr, cur_x, out_height, dir, numskip_before, numskip_after, 255, ptr, clip_left / 8); } |