NTSC: only use accessors to get internal video clock vert/horz values

This commit is contained in:
tomcw
2023-01-14 14:08:42 +00:00
parent 1effb64226
commit d63a31a043
5 changed files with 20 additions and 16 deletions
+3 -3
View File
@@ -156,7 +156,7 @@ void Video::VideoReinitialize(bool bInitVideoScannerAddress)
NTSC_VideoInitAppleType();
NTSC_SetVideoStyle();
NTSC_SetVideoTextMode( g_uVideoMode & VF_80COL ? 80 : 40 );
NTSC_SetVideoMode( g_uVideoMode ); // Pre-condition: g_nVideoClockHorz (derived from g_dwCyclesThisFrame)
NTSC_SetVideoMode( g_uVideoMode );
VideoSwitchVideocardPalette(RGB_GetVideocard(), GetVideoType());
}
@@ -455,7 +455,7 @@ bool Video::VideoGetVblBarEx(const DWORD dwCyclesThisFrame)
NTSC_VideoClockResync(dwCyclesThisFrame);
}
return g_nVideoClockVert < kVDisplayableScanLines;
return NTSC_GetVideoVert() < kVDisplayableScanLines;
}
// Called when *inside* CpuExecute()
@@ -467,7 +467,7 @@ bool Video::VideoGetVblBar(const DWORD uExecutedCycles)
NTSC_VideoClockResync(CpuGetCyclesThisVideoFrame(uExecutedCycles));
}
return g_nVideoClockVert < kVDisplayableScanLines;
return NTSC_GetVideoVert() < kVDisplayableScanLines;
}
//===========================================================================