Fix 9ce1626b: Some blitters have bp->remap aliased to remap for performance. (#11626)

While this probably doesn't make a huge difference for the custom transparent remap code path, the alias is there so use it.
This commit is contained in:
Peter Nelson
2023-12-25 20:59:37 +00:00
committed by GitHub
parent fdf6cbf848
commit a2a7ecf88e
5 changed files with 6 additions and 6 deletions

View File

@@ -267,9 +267,9 @@ inline void Blitter_40bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel
src_px += n;
do {
if (*anim != 0) {
*anim = bp->remap[*anim];
*anim = remap[*anim];
} else {
*dst = this->LookupColourInPalette(bp->remap[GetNearestColourIndex(*dst)]);
*dst = this->LookupColourInPalette(remap[GetNearestColourIndex(*dst)]);
*anim = 0;
}
anim++;