mirror of https://github.com/stella-emu/stella.git
Avoid possible issues during bogus vsync writes.
This commit is contained in:
parent
a5f1a8624f
commit
6a2259ef2f
|
@ -165,6 +165,8 @@ void FrameManager::setVblank(bool vblank)
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void FrameManager::setVsync(bool vsync)
|
void FrameManager::setVsync(bool vsync)
|
||||||
{
|
{
|
||||||
|
if (vsync == myVsync) return;
|
||||||
|
|
||||||
#ifdef TIA_FRAMEMANAGER_DEBUG_LOG
|
#ifdef TIA_FRAMEMANAGER_DEBUG_LOG
|
||||||
(cout << "vsync " << myVsync << " -> " << vsync << ": state " << int(myState) << " @ " << myLineInState << "\n").flush();
|
(cout << "vsync " << myVsync << " -> " << vsync << ": state " << int(myState) << " @ " << myLineInState << "\n").flush();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue