From 8721a482064e44937a35a2e778e6d560d5d3f7e3 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 3 Jun 2018 00:36:05 +0300 Subject: [PATCH] Fixed incorrect double speed behavior. --- Core/display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/display.c b/Core/display.c index b65381d..8581622 100644 --- a/Core/display.c +++ b/Core/display.c @@ -651,8 +651,8 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles) gb->ly_for_comparison = gb->current_line? -1 : 0; /* The OAM STAT interrupt occurs 1 T-cycle before STAT actually changes, except on line 0. - PPU glitch? (Todo: and in double speed mode?) */ - if (gb->current_line != 0 && !gb->cgb_double_speed) { + PPU glitch. */ + if (gb->current_line != 0) { gb->oam_interrupt_line = gb->io_registers[GB_IO_STAT] & 0x20; } trigger_oam_interrupt(gb);