mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Fix video tearing by only updating during the Apple II VBL (#711)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user