core, fix z80 vcounter value

This commit is contained in:
kub 2023-07-12 22:35:33 +02:00
parent adffea8dae
commit 7021622153
4 changed files with 27 additions and 28 deletions

View file

@ -225,6 +225,15 @@ void PicoLoopPrepare(void)
// force setting possibly changed..
Pico.m.pal = (PicoIn.regionOverride == 2 || PicoIn.regionOverride == 8) ? 1 : 0;
if (Pico.m.pal) {
Pico.t.vcnt_wrap = 0x103;
Pico.t.vcnt_adj = 57;
}
else {
Pico.t.vcnt_wrap = 0xEB;
Pico.t.vcnt_adj = 6;
}
Pico.m.dirtyPal = 1;
rendstatus_old = -1;