mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-11 05:29:55 +00:00
Fixed: NTSC video mode vars not setup after loading save-state
This commit is contained in:
parent
d23ae15774
commit
346f45b3e9
@ -1719,7 +1719,6 @@ static void ScreenWindowResize(const bool bCtrlKey)
|
|||||||
nOldViewportScale = g_nViewportScale;
|
nOldViewportScale = g_nViewportScale;
|
||||||
FrameResizeWindow(1); // reset to 1x
|
FrameResizeWindow(1); // reset to 1x
|
||||||
SetFullScreenMode();
|
SetFullScreenMode();
|
||||||
//VideoRedrawScreen(1); // [TC-10/06/2014] Remove this once checked it's not needed by Win8
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1338,6 +1338,10 @@ void VideoSetSnapshot_v1(const UINT AltCharSet, const UINT VideoMode)
|
|||||||
{
|
{
|
||||||
g_nAltCharSetOffset = !AltCharSet ? 0 : 256;
|
g_nAltCharSetOffset = !AltCharSet ? 0 : 256;
|
||||||
g_uVideoMode = VideoMode;
|
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_uVideoMode = yamlLoadHelper.LoadUint(SS_YAML_KEY_VIDEOMODE);
|
||||||
g_dwCyclesThisFrame = yamlLoadHelper.LoadUint(SS_YAML_KEY_CYCLESTHISFRAME);
|
g_dwCyclesThisFrame = yamlLoadHelper.LoadUint(SS_YAML_KEY_CYCLESTHISFRAME);
|
||||||
|
|
||||||
|
// NTSC_BEGIN
|
||||||
|
NTSC_SetVideoMode( g_uVideoMode );
|
||||||
|
// NTSC_END
|
||||||
|
|
||||||
yamlLoadHelper.PopMap();
|
yamlLoadHelper.PopMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user