GB Video: OAM STAT can even happen in mode 1

This commit is contained in:
Jeffrey Pfau 2016-01-28 01:35:04 -08:00
parent 2399219663
commit a3d0b85d56
1 changed files with 1 additions and 1 deletions

View File

@ -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);