mirror of https://github.com/mgba-emu/mgba.git
GB Video: Set mode variable when disabling LCDC
This commit is contained in:
parent
aa0f988daa
commit
932f2624c0
|
@ -437,6 +437,7 @@ void GBVideoWriteLCDC(struct GBVideo* video, GBRegisterLCDC value) {
|
|||
}
|
||||
if (GBRegisterLCDCIsEnable(video->p->memory.io[REG_LCDC]) && !GBRegisterLCDCIsEnable(value)) {
|
||||
// TODO: Fix serialization; this gets internal and visible modes out of sync
|
||||
video->mode = 0;
|
||||
video->stat = GBRegisterSTATSetMode(video->stat, 0);
|
||||
video->p->memory.io[REG_STAT] = video->stat;
|
||||
video->ly = 0;
|
||||
|
|
Loading…
Reference in New Issue