fix(dma): initial version of dma transfer now works

This commit is contained in:
2021-06-06 23:57:54 -05:00
parent d623800005
commit e8e6c41dbe
4 changed files with 97 additions and 100 deletions

View File

@@ -189,7 +189,7 @@ impl Ppu {
}
fn scan_oam(&mut self) {
if self.scan_state.mode() == OamScanMode::Scan && self.dma.is_active() {
if self.scan_state.mode() == OamScanMode::Scan {
if !self.window_stat.coincidence() && self.scan_state.count() == 0 {
// Determine whether we should draw the window next frame
self.window_stat