mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 16:30:23 +00:00
Optimization: replace slow VideoGetVbl() with fast NTSC_VideoIsVbl()
This commit is contained in:
parent
f36073beb5
commit
b96b3fe1d4
@ -897,8 +897,8 @@ BYTE VideoCheckMode (WORD, WORD address, BYTE, BYTE, ULONG uExecutedCycles)
|
||||
|
||||
BYTE VideoCheckVbl (WORD, WORD, BYTE, BYTE, ULONG uExecutedCycles)
|
||||
{
|
||||
bool bVblBar = VideoGetVbl(uExecutedCycles);
|
||||
//bool bVblBar = NTSC_VideoIsVbl();
|
||||
//bool bVblBar = VideoGetVbl(uExecutedCycles);
|
||||
bool bVblBar = NTSC_VideoIsVbl();
|
||||
|
||||
BYTE r = KeybGetKeycode();
|
||||
return (r & ~0x80) | (bVblBar ? 0x80 : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user