all repos — mgba @ a3d0b85d5651abde4317f5ba6692d060b52230d4

mGBA Game Boy Advance Emulator

GB Video: OAM STAT can even happen in mode 1
Jeffrey Pfau jeffrey@endrift.com
Thu, 28 Jan 2016 01:35:04 -0800
commit

a3d0b85d5651abde4317f5ba6692d060b52230d4

parent

239921966332f0a749ff35f5daa17f06132643ab

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gb/video.csrc/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);