XRRConfiguration::~XRRConfiguration() { if (bValid && bIsFullscreen) ToggleDisplayMode(False); if (screenResources) XRRFreeScreenResources(screenResources); if (outputInfo) XRRFreeOutputInfo(outputInfo); if (crtcInfo) XRRFreeCrtcInfo(crtcInfo); }
void CFrame::DoFullscreen(bool bF) { ToggleDisplayMode(bF); m_RenderFrame->ShowFullScreen(bF, wxFULLSCREEN_ALL); if (SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain) { if (bF) { // Save the current mode before going to fullscreen AuiCurrent = m_Mgr->SavePerspective(); m_Mgr->LoadPerspective(AuiFullscreen, true); } else { // Restore saved perspective m_Mgr->LoadPerspective(AuiCurrent, true); } } else m_RenderFrame->Raise(); }