mirror of https://github.com/mgba-emu/mgba.git
GB Video: Fix mode end events when turning off LCD
This commit is contained in:
parent
0b6bc9ae82
commit
62718fce45
|
@ -321,6 +321,7 @@ void GBVideoWriteLCDC(struct GBVideo* video, GBRegisterLCDC value) {
|
|||
video->p->memory.io[REG_STAT] = video->stat;
|
||||
video->ly = 0;
|
||||
video->p->memory.io[REG_LY] = 0;
|
||||
mTimingDeschedule(&video->p->timing, &video->modeEvent);
|
||||
mTimingSchedule(&video->p->timing, &video->frameEvent, GB_VIDEO_TOTAL_LENGTH);
|
||||
}
|
||||
video->p->memory.io[REG_STAT] = video->stat;
|
||||
|
|
Loading…
Reference in New Issue