ref: 6ad3eafc211d08e52e6812aa545ff3de0a7fa446
parent: c08fcb7d885380bec787f8aa7848bcc13afbc464
author: Snesrev <[email protected]>
date: Thu Oct 20 10:08:57 EDT 2022
Bottom part wasn't black in extend_y mode.
--- a/snes/ppu.c
+++ b/snes/ppu.c
@@ -174,10 +174,7 @@
// outside of visible range?
if (line >= 225 + ppu->extraBottomCur) {
- uint8 *dst = &ppu->renderBuffer[(line - 1) * 2 * ppu->renderPitch];
- size_t n = sizeof(uint32) * 2 * (256 + ppu->extraLeftRight * 2);
- memset(dst, 0, n);
- memset(dst + ppu->renderPitch, 0, n);
+ memset(&ppu->renderBuffer[(line - 1) * ppu->renderPitch], 0, sizeof(uint32) * (256 + ppu->extraLeftRight * 2));
return;
}