Debugger: Fix for bpv when in full-speed (#1164)

This commit is contained in:
tomcw
2023-01-12 21:51:08 +00:00
parent 0fe774dbdf
commit 244799ec5a
4 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -1350,7 +1350,9 @@ int CheckBreakpointsVideo()
if (pBP->eSource != BP_SRC_VIDEO_SCANNER)
continue;
if (_CheckBreakpointValue(pBP, g_nVideoClockVert))
uint16_t vert, horz;
NTSC_GetVideoHVForDebugger(vert, horz); // update g_nVideoClockHorz/g_nVideoClockVert - needed for when in fullspeed (GH#1164)
if (_CheckBreakpointValue(pBP, vert))
{
bBreakpointHit = BP_HIT_VIDEO_POS;
pBP->bEnabled = false; // Disable, otherwise it'll trigger many times on this scan-line