From a85d33beb3c70068fab1493dedf20f45eab03429 Mon Sep 17 00:00:00 2001 From: tomcw Date: Sun, 21 Dec 2014 16:43:49 -0500 Subject: [PATCH] Switch VideoCheckVbl() to call VideoGetVbl() instead of VideoGetScannerAddress() --- source/Video.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Video.cpp b/source/Video.cpp index f5d11040..e5203faa 100644 --- a/source/Video.cpp +++ b/source/Video.cpp @@ -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;