fix(ppu): PPU cycle count increases even if LCDC bit 7 says otherwise
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-07-12 21:32:50 -05:00
parent afdfcfce2c
commit 192bdffd64

View File

@ -67,12 +67,12 @@ impl BusIo for Ppu {
impl Ppu {
pub(crate) fn clock(&mut self) {
self.cycle += 1;
if !self.ctrl.lcd_enabled() {
return;
}
self.cycle += 1;
match self.stat.mode() {
PpuMode::OamScan => {
if self.cycle >= 80.into() {