MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / ApplyVideoModeChange

Method ApplyVideoModeChange

source/Windows/Win32Frame.cpp:626–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624#undef SAFE_RELEASE
625
626void Win32Frame::ApplyVideoModeChange(void)
627{
628 Video& video = GetVideo();
629 video.Config_Save_Video();
630 video.VideoReinitialize(false);
631
632 if (g_nAppMode != MODE_LOGO)
633 {
634 if (g_nAppMode == MODE_DEBUG)
635 {
636 UINT debugVideoMode;
637 if (DebugGetVideoMode(&debugVideoMode))
638 VideoRefreshScreen(debugVideoMode, true);
639 else
640 VideoPresentScreen();
641 }
642 else
643 {
644 VideoPresentScreen();
645 }
646 }
647}
648
649Win32Frame& Win32Frame::GetWin32Frame()
650{

Callers 1

ApplyConfigAfterCloseMethod · 0.80

Calls 3

DebugGetVideoModeFunction · 0.85
Config_Save_VideoMethod · 0.80
VideoReinitializeMethod · 0.80

Tested by

no test coverage detected