ref: ed9661ac979b27fc4e7c5b522ed81583807c63db
parent: a38a0a08f095edb0c24824f679ef7a6cb8b3961e
author: Snesrev <[email protected]>
date: Sun Sep 18 19:01:07 EDT 2022
Wrong memset in ppu.c
--- a/snes/ppu.c
+++ b/snes/ppu.c
@@ -960,7 +960,7 @@
if (ppu->extraLeftRight - ppu->extraLeftCur != 0)
memset(dst_org, 0, 2 * sizeof(uint32) * (ppu->extraLeftRight - ppu->extraLeftCur));
if (ppu->extraLeftRight - ppu->extraRightCur != 0)
- memset(dst_org + 2 * (kPpuXPixels - (ppu->extraLeftRight - ppu->extraRightCur)), 0,
+ memset(dst_org + 2 * (256 + ppu->extraLeftRight * 2 - (ppu->extraLeftRight - ppu->extraRightCur)), 0,
2 * sizeof(uint32) * (ppu->extraLeftRight - ppu->extraRightCur));
// Duplicate one line