ref: 5765732f64ed03e0e40335d4ac7ad912a2f9f7f5
parent: 420047fd16341e82e62da4bab50db25d3a6bac37
author: Snesrev <snesrev@protonmail.com>
date: Wed Sep 14 22:54:57 EDT 2022
Update old renderer to work again
--- a/snes/ppu.c
+++ b/snes/ppu.c
@@ -1119,7 +1119,8 @@
} else {
// get a pixel from the sprite buffer
pixel = 0;
- if ((ppu->objBuffer.prio[x] >> 4) == SPRITE_PRIO_TO_PRIO_HI(curPriority)) pixel = ppu->objBuffer.pixel[x];
+ if ((ppu->objBuffer.prio[x + kPpuExtraLeftRight] >> 4) == SPRITE_PRIO_TO_PRIO_HI(curPriority))
+ pixel = ppu->objBuffer.pixel[x + kPpuExtraLeftRight];
}
}
if (pixel > 0) {