fix: don't start HDMA in vblank

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-06-23 05:45:52 -03:00
parent 81c669fe64
commit 887bd89668
1 changed files with 3 additions and 1 deletions

View File

@ -569,6 +569,8 @@ pub const Ppu = struct {
} }
// See if HBlank DMA is present and not enabled // See if HBlank DMA is present and not enabled
if (!self.dispstat.vblank.read())
pollBlankingDma(&cpu.bus, .HBlank); pollBlankingDma(&cpu.bus, .HBlank);
self.dispstat.hblank.set(); self.dispstat.hblank.set();