mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-15 09:05:39 +00:00
Don't delay a PAGE1/2 video mode change (#656)
This commit is contained in:
parent
51802257aa
commit
dbcb789442
@ -652,6 +652,8 @@ BYTE VideoSetMode(WORD, WORD address, BYTE write, BYTE, ULONG uExecutedCycles)
|
|||||||
{
|
{
|
||||||
address &= 0xFF;
|
address &= 0xFF;
|
||||||
|
|
||||||
|
const uint32_t oldVideoMode = g_uVideoMode;
|
||||||
|
|
||||||
switch (address)
|
switch (address)
|
||||||
{
|
{
|
||||||
case 0x00: g_uVideoMode &= ~VF_80STORE; break;
|
case 0x00: g_uVideoMode &= ~VF_80STORE; break;
|
||||||
@ -675,7 +677,11 @@ BYTE VideoSetMode(WORD, WORD address, BYTE write, BYTE, ULONG uExecutedCycles)
|
|||||||
if (!IS_APPLE2)
|
if (!IS_APPLE2)
|
||||||
RGB_SetVideoMode(address);
|
RGB_SetVideoMode(address);
|
||||||
|
|
||||||
NTSC_SetVideoMode( g_uVideoMode, true );
|
bool delay = true;
|
||||||
|
if ((oldVideoMode ^ g_uVideoMode) & VF_PAGE2)
|
||||||
|
delay = false; // PAGE2 flag changed state, so no 1 cycle delay (GH#656)
|
||||||
|
|
||||||
|
NTSC_SetVideoMode( g_uVideoMode, delay );
|
||||||
|
|
||||||
return MemReadFloatingBus(uExecutedCycles);
|
return MemReadFloatingBus(uExecutedCycles);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user