aboutsummaryrefslogtreecommitdiff
path: root/src/ppu.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppu.rs')
-rw-r--r--src/ppu.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ppu.rs b/src/ppu.rs
index ffb1953..c5b4aec 100644
--- a/src/ppu.rs
+++ b/src/ppu.rs
@@ -531,6 +531,7 @@ impl<'a> PPU<'a> {
/* clear vblank, sprite zero hit & overflow */
self.ppustatus &= !(PPU::FLAG_VBLANK |
PPU::FLAG_SPRITE_ZERO | PPU::FLAG_OVERFLOW);
+ self.bg_pixel = 0;
}
}
} else if self.scanline == 241 && cycle == 1 {