mirror of https://github.com/stella-emu/stella.git
Fix invalid access in FrameManager.
This commit is contained in:
parent
7b733d6126
commit
df1b2a99ce
|
@ -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;
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
Loading…
Reference in New Issue