all repos — mgba @ b752cec5ccd098e519c62de48659a0327ea3e65d

mGBA Game Boy Advance Emulator

GB Video: Fix LYC in VBlank
Jeffrey Pfau jeffrey@endrift.com
Sat, 06 Feb 2016 04:08:07 -0800
commit

b752cec5ccd098e519c62de48659a0327ea3e65d

parent

3ade5188db2c36c8ed850847d2925abdb5198bd5

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

jump to
M src/gb/video.csrc/gb/video.c

@@ -136,12 +136,12 @@ video->nextMode = GB_VIDEO_MODE_2_LENGTH;

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