Fixed: NTSC video mode vars not setup after loading save-state

This commit is contained in:
tomcw 2016-04-04 21:32:40 +01:00
parent d23ae15774
commit 346f45b3e9
2 changed files with 8 additions and 1 deletions

View File

@ -1719,7 +1719,6 @@ static void ScreenWindowResize(const bool bCtrlKey)
nOldViewportScale = g_nViewportScale;
FrameResizeWindow(1); // reset to 1x
SetFullScreenMode();
//VideoRedrawScreen(1); // [TC-10/06/2014] Remove this once checked it's not needed by Win8
}
}

View File

@ -1338,6 +1338,10 @@ void VideoSetSnapshot_v1(const UINT AltCharSet, const UINT VideoMode)
{
g_nAltCharSetOffset = !AltCharSet ? 0 : 256;
g_uVideoMode = VideoMode;
// NTSC_BEGIN
NTSC_SetVideoMode( g_uVideoMode );
// NTSC_END
}
//
@ -1369,6 +1373,10 @@ void VideoLoadSnapshot(YamlLoadHelper& yamlLoadHelper)
g_uVideoMode = yamlLoadHelper.LoadUint(SS_YAML_KEY_VIDEOMODE);
g_dwCyclesThisFrame = yamlLoadHelper.LoadUint(SS_YAML_KEY_CYCLESTHISFRAME);
// NTSC_BEGIN
NTSC_SetVideoMode( g_uVideoMode );
// NTSC_END
yamlLoadHelper.PopMap();
}