Avoid possible issues during bogus vsync writes.

This commit is contained in:
Christian Speckner 2017-01-02 00:10:06 +01:00
parent a5f1a8624f
commit 6a2259ef2f
1 changed files with 2 additions and 0 deletions

View File

@ -165,6 +165,8 @@ void FrameManager::setVblank(bool vblank)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void FrameManager::setVsync(bool vsync)
{
if (vsync == myVsync) return;
#ifdef TIA_FRAMEMANAGER_DEBUG_LOG
(cout << "vsync " << myVsync << " -> " << vsync << ": state " << int(myState) << " @ " << myLineInState << "\n").flush();
#endif