From a3d0b85d5651abde4317f5ba6692d060b52230d4 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 28 Jan 2016 01:35:04 -0800 Subject: [PATCH] GB Video: OAM STAT can even happen in mode 1 --- src/gb/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gb/video.c b/src/gb/video.c index 0677d19b8..d8a9da70c 100644 --- a/src/gb/video.c +++ b/src/gb/video.c @@ -106,7 +106,7 @@ int32_t GBVideoProcessEvents(struct GBVideo* video, int32_t cycles) { video->mode = 1; ++video->frameCounter; video->renderer->finishFrame(video->renderer); - if (GBRegisterSTATIsVblankIRQ(video->stat)) { + if (GBRegisterSTATIsVblankIRQ(video->stat) || GBRegisterSTATIsOAMIRQ(video->stat)) { video->p->memory.io[REG_IF] |= (1 << GB_IRQ_LCDSTAT); } video->p->memory.io[REG_IF] |= (1 << GB_IRQ_VBLANK);