Switch VideoCheckVbl() to call VideoGetVbl() instead of VideoGetScannerAddress()

This commit is contained in:
tomcw 2014-12-21 16:43:49 -05:00
parent c04e934a27
commit a85d33beb3

View File

@ -2196,11 +2196,10 @@ BYTE VideoCheckMode (WORD, WORD address, BYTE, BYTE, ULONG uExecutedCycles)
BYTE VideoCheckVbl (WORD, WORD, BYTE, BYTE, ULONG uExecutedCycles)
{
bool bVblBar = false;
VideoGetScannerAddress(&bVblBar, uExecutedCycles);
bool bVblBar = VideoGetVbl(uExecutedCycles);
BYTE r = KeybGetKeycode();
return (r & ~0x80) | ((bVblBar) ? 0x80 : 0);
return (r & ~0x80) | (bVblBar ? 0x80 : 0);
}
//===========================================================================
@ -2669,6 +2668,7 @@ void VideoResetState ()
//===========================================================================
BYTE VideoSetMode (WORD, WORD address, BYTE write, BYTE, ULONG uExecutedCycles)
{
address &= 0xFF;