diff options
author | Max Horn | 2002-08-04 00:04:50 +0000 |
---|---|---|
committer | Max Horn | 2002-08-04 00:04:50 +0000 |
commit | 62bdfef0c1f69d5d3bdcad536bcbb4ba382b6ab6 (patch) | |
tree | f0c02d0ae5d1cea1aa89f30f824c67cf732ee062 | |
parent | 1c6bc15f2311cf8b6e4a3b71dab49a9471cd868b (diff) | |
download | scummvm-rg350-62bdfef0c1f69d5d3bdcad536bcbb4ba382b6ab6.tar.gz scummvm-rg350-62bdfef0c1f69d5d3bdcad536bcbb4ba382b6ab6.tar.bz2 scummvm-rg350-62bdfef0c1f69d5d3bdcad536bcbb4ba382b6ab6.zip |
I poked thru old versions of ScummVM, and in the end found out the truth about _transEffect - it's simply _shadowPalette! Thus, got rid of all references to it, and use _shadow_table in the CostumeRenderer class instead. Now somebody please test this for me :-)
svn-id: r4691
-rw-r--r-- | costume.cpp | 69 | ||||
-rw-r--r-- | costume.h | 1 |
2 files changed, 34 insertions, 36 deletions
diff --git a/costume.cpp b/costume.cpp index e53ec80d6d..c9e3e948b0 100644 --- a/costume.cpp +++ b/costume.cpp @@ -360,21 +360,20 @@ byte CostumeRenderer::mainRoutine(Actor *a, int slot, int frame) void CostumeRenderer::proc6() { - byte len; byte *src, *dst; - byte width, height, pcolor; - int color; + byte len, height, pcolor, width; uint y; + int color; uint scrheight; y = _ypos; - len = _replen; src = _srcptr; dst = _backbuff_ptr; + len = _replen; color = _repcolor; + height = _height2; scrheight = _outheight; width = _width2; - height = _height2; if (_docontinue) goto StartPos; @@ -390,7 +389,7 @@ void CostumeRenderer::proc6() if (color && y < scrheight) { pcolor = _palette[color]; if (pcolor == 13) { - pcolor = _transEffect[*dst]; + pcolor = _shadow_table[*dst]; } *dst = pcolor; } @@ -423,8 +422,8 @@ void CostumeRenderer::proc5() dst = _backbuff_ptr; len = _replen; color = _repcolor; - scrheight = _outheight; height = _height2; + scrheight = _outheight; if (_docontinue) goto StartPos; @@ -440,7 +439,7 @@ void CostumeRenderer::proc5() if (color && y < scrheight && !(*mask & maskbit)) { pcolor = _palette[color]; if (pcolor == 13) - pcolor = _transEffect[*dst]; + pcolor = _shadow_table[*dst]; *dst = pcolor; } dst += 320; @@ -486,8 +485,8 @@ void CostumeRenderer::proc4() dst = _backbuff_ptr; len = _replen; color = _repcolor; - scrheight = _outheight; height = _height2; + scrheight = _outheight; if (_docontinue) goto StartPos; @@ -503,7 +502,7 @@ void CostumeRenderer::proc4() if (color && y < scrheight && !((*mask | mask[_imgbufoffs]) & maskbit)) { pcolor = _palette[color]; if (pcolor == 13) - pcolor = _transEffect[*dst]; + pcolor = _shadow_table[*dst]; *dst = pcolor; } dst += 320; @@ -543,14 +542,14 @@ void CostumeRenderer::proc3() uint y; mask = _mask_ptr_dest; + maskbit = revBitMask[_xpos & 7]; + y = _ypos; + src = _srcptr; dst = _backbuff_ptr; - height = _height2; - width = _width2; len = _replen; color = _repcolor; - src = _srcptr; - maskbit = revBitMask[_xpos & 7]; - y = _ypos; + height = _height2; + width = _width2; if (_docontinue) goto StartPos; @@ -561,12 +560,13 @@ void CostumeRenderer::proc3() len &= _maskval; if (!len) len = *src++; + do { if (cost_scaleTable[_scaleIndexY++] < _scaleY) { if (color && y < _outheight && !((*mask | mask[_imgbufoffs]) & maskbit)) { pcolor = _palette[color]; if (pcolor == 13) - pcolor = _transEffect[*dst]; + pcolor = _shadow_table[*dst]; *dst = pcolor; } dst += 320; @@ -604,14 +604,14 @@ void CostumeRenderer::proc2() uint y; mask = _mask_ptr_dest; + maskbit = revBitMask[_xpos & 7]; + y = _ypos; + src = _srcptr; dst = _backbuff_ptr; - height = _height2; - width = _width2; len = _replen; color = _repcolor; - src = _srcptr; - maskbit = revBitMask[_xpos & 7]; - y = _ypos; + height = _height2; + width = _width2; if (_docontinue) goto StartPos; @@ -622,12 +622,13 @@ void CostumeRenderer::proc2() len &= _maskval; if (!len) len = *src++; + do { if (cost_scaleTable[_scaleIndexY++] < _scaleY) { if (color && y < _outheight && !(*mask & maskbit)) { pcolor = _palette[color]; if (pcolor == 13) - pcolor = _transEffect[*dst]; + pcolor = _shadow_table[*dst]; *dst = pcolor; } dst += 320; @@ -661,20 +662,18 @@ void CostumeRenderer::proc1() { byte *mask, *src, *dst, *dstorg; byte maskbit, len, height, pcolor, width; + int color, t; uint y; - int color; - int t; mask = _mask_ptr = _mask_ptr_dest; maskbit = revBitMask[_xpos & 7]; y = _ypos; - + src = _srcptr; dstorg = dst = _backbuff_ptr; - height = _height2; - width = _width2; len = _replen; color = _repcolor; - src = _srcptr; + height = _height2; + width = _width2; if (_docontinue) goto StartPos; @@ -691,7 +690,7 @@ void CostumeRenderer::proc1() if (color && y < _outheight) { pcolor = _palette[color]; if (pcolor == 13) - pcolor = _transEffect[*dst]; + pcolor = _shadow_table[*dst]; *dst = pcolor; } dst += 320; @@ -748,7 +747,7 @@ void CostumeRenderer::proc6_ami() if (color && x >= 0 && x < 320) { pcolor = _palette[color]; /* if (pcolor == 13) { - pcolor = _transEffect[*dst]; + pcolor = _shadow_table[*dst]; }*/ *dst = pcolor; } @@ -798,7 +797,7 @@ void CostumeRenderer::proc5_ami() if (color && x >=0 && x < 320 && !(*mask & maskbit)) { pcolor = _palette[color]; /* if (pcolor == 13) - pcolor = _transEffect[*dst];*/ + pcolor = _shadow_table[*dst];*/ *dst = pcolor; } dst += step; @@ -864,7 +863,7 @@ void CostumeRenderer::proc4_ami() if (color && x >= 0 && x < 320 && !((*mask | mask[_imgbufoffs]) & maskbit)) { pcolor = _palette[color]; /* if (pcolor == 13) - pcolor = _transEffect[*dst];*/ + pcolor = _shadow_table[*dst];*/ *dst = pcolor; } dst += step; @@ -928,7 +927,7 @@ void CostumeRenderer::proc3_ami() if (color && _xpos >= 0 && _xpos < 320 && !((*mask | mask[_imgbufoffs]) & maskbit)) { pcolor = _palette[color]; /* if (pcolor == 13) - pcolor = _transEffect[*dst];*/ + pcolor = _shadow_table[*dst];*/ *dst = pcolor; } @@ -993,7 +992,7 @@ void CostumeRenderer::proc2_ami() if (color && _xpos >= 0 && _xpos < 320 && !(*mask & maskbit)) { pcolor = _palette[color]; /* if (pcolor == 13) - pcolor = _transEffect[*dst];*/ + pcolor = _shadow_table[*dst];*/ *dst = pcolor; } t = _scaleIndexX; @@ -1062,7 +1061,7 @@ void CostumeRenderer::proc1_ami() if (color && _xpos >= 0 && _xpos < 320) { pcolor = _palette[color]; /* if (pcolor == 13) - pcolor = _transEffect[*dst];*/ + pcolor = _shadow_table[*dst];*/ *dst = pcolor; } @@ -81,7 +81,6 @@ public: byte _repcolor; byte _replen; byte _palette[32]; - byte _transEffect[0x100]; void proc6(); void proc5(); |