Fix invalid access in FrameManager.

This commit is contained in:
Christian Speckner 2017-01-09 00:10:26 +01:00
parent 7b733d6126
commit df1b2a99ce
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ static constexpr uInt32
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FrameManager::FrameManager()
: myMode(TvMode::pal),
myVblankMode(VblankMode::floating),
myYstart(0)
{
setTvMode(TvMode::ntsc);
@ -79,7 +80,7 @@ void FrameManager::reset()
myStableVblankFrames = 0;
myVblankViolated = false;
if (myVblankMode == VblankMode::locked) myVblankMode = VblankMode::floating;
if (myVblankMode != VblankMode::fixed) myVblankMode = VblankMode::floating;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -