shithub: zelda3

Download patch

ref: ec08202f3a7d95c4db1e384a51d12244fae9c23b
parent: 2cfb4cbaf324e7b997a7695e9cdfaa8025fc66d9
author: Snesrev <[email protected]>
date: Fri Oct 14 18:00:27 EDT 2022

Forgot to change the forcedBlank memset

--- a/snes/ppu.c
+++ b/snes/ppu.c
@@ -843,10 +843,9 @@
 
 static NOINLINE void PpuDrawWholeLine(Ppu *ppu, uint y) {
   if (ppu->forcedBlank) {
-    uint8 *dst = &ppu->renderBuffer[(y - 1) * 2 * ppu->renderPitch];
-    size_t n = sizeof(uint32) * 2 * (256 + ppu->extraLeftRight * 2);
+    uint8 *dst = &ppu->renderBuffer[(y - 1) * ppu->renderPitch];
+    size_t n = sizeof(uint32) * (256 + ppu->extraLeftRight * 2);
     memset(dst, 0, n);
-    memset(dst + ppu->renderPitch, 0, n);
     return;
   }