From b752cec5ccd098e519c62de48659a0327ea3e65d Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 6 Feb 2016 04:08:07 -0800 Subject: [PATCH] GB Video: Fix LYC in VBlank --- 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 28a50bcff..5788dbe1a 100644 --- a/src/gb/video.c +++ b/src/gb/video.c @@ -136,12 +136,12 @@ int32_t GBVideoProcessEvents(struct GBVideo* video, int32_t cycles) { video->mode = 2; if (GBRegisterSTATIsOAMIRQ(video->stat)) { video->p->memory.io[REG_IF] |= (1 << GB_IRQ_LCDSTAT); - GBUpdateIRQs(video->p); } } else { video->nextMode = GB_VIDEO_HORIZONTAL_LENGTH; } video->p->memory.io[REG_LY] = video->ly; + GBUpdateIRQs(video->p); break; case 2: _cleanOAM(video, video->ly);