Fix video tearing by only updating during the Apple II VBL (#711)

This commit is contained in:
tomcw
2019-11-03 15:05:28 +00:00
parent d92eca5068
commit 4ad0923399
4 changed files with 14 additions and 3 deletions
+6
View File
@@ -874,6 +874,7 @@ WORD VideoGetScannerAddress(DWORD nCycles, VideoScanner_e videoScannerAddr /*= V
//===========================================================================
// TODO: Consider replacing simply with: return g_nVideoClockVert < kVDisplayableScanLines
// - will this work in full-speed mode?
bool VideoGetVblBar(const DWORD uExecutedCycles)
{
// get video scanner position
@@ -888,6 +889,11 @@ bool VideoGetVblBar(const DWORD uExecutedCycles)
return nCycles < kVDisplayableScanLines * kHClocks;
}
bool VideoGetVblBar(void)
{
return g_nVideoClockVert < kVDisplayableScanLines;
}
//===========================================================================
#define MAX_DRAW_DEVICES 10