GB Video: Fix LYC in VBlank

This commit is contained in:
Jeffrey Pfau 2016-02-06 04:08:07 -08:00
parent 3ade5188db
commit b752cec5cc
1 changed files with 1 additions and 1 deletions

View File

@ -136,12 +136,12 @@ int32_t GBVideoProcessEvents(struct GBVideo* video, int32_t cycles) {
video->mode = 2; video->mode = 2;
if (GBRegisterSTATIsOAMIRQ(video->stat)) { if (GBRegisterSTATIsOAMIRQ(video->stat)) {
video->p->memory.io[REG_IF] |= (1 << GB_IRQ_LCDSTAT); video->p->memory.io[REG_IF] |= (1 << GB_IRQ_LCDSTAT);
GBUpdateIRQs(video->p);
} }
} else { } else {
video->nextMode = GB_VIDEO_HORIZONTAL_LENGTH; video->nextMode = GB_VIDEO_HORIZONTAL_LENGTH;
} }
video->p->memory.io[REG_LY] = video->ly; video->p->memory.io[REG_LY] = video->ly;
GBUpdateIRQs(video->p);
break; break;
case 2: case 2:
_cleanOAM(video, video->ly); _cleanOAM(video, video->ly);