GB Video: OAM STAT can even happen in mode 1
Jeffrey Pfau jeffrey@endrift.com
Thu, 28 Jan 2016 01:35:04 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gb/video.c
→
src/gb/video.c
@@ -106,7 +106,7 @@ video->nextMode = GB_VIDEO_HORIZONTAL_LENGTH;
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);