ks_nes_draw: fix regression in ksNesDrawEmuResult

This commit is contained in:
Cuyler36
2025-10-28 05:00:26 -04:00
parent b4166122df
commit 630a5f614c
+1 -3
View File
@@ -1190,9 +1190,7 @@ void ksNesDrawEmuResult(ksNesCommonWorkObj* wp) {
GXTexObj obj2;
cnt = 0;
i = 8;
color_effects_state = 0xFF;
for (; i < ARRAY_COUNT(wp->draw_ctx.ppu_scanline_regs); i++) {
for (i = 8, color_effects_state = 0xFF; i < ARRAY_COUNT(wp->draw_ctx.ppu_scanline_regs) - 4; i++) {
val = wp->draw_ctx.ppu_scanline_regs[i].ppumask_flags & KS_NES_PPU_MASK_COLOR_EFFECTS;
if (val != color_effects_state) {
color_effects_state = val;