When using the "Keep window on top option" make sure that the effect of

that option ends when emulation ends when using render to main.
This commit is contained in:
Glenn Rice 2012-12-25 21:12:51 -06:00
parent b3ed3bdb91
commit 0de073edea
1 changed files with 3 additions and 0 deletions

View File

@ -1142,6 +1142,9 @@ void CFrame::DoStop()
DoFullscreen(false);
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain)
m_RenderFrame->Destroy();
else
// Make sure the window is not longer set to stay on top
m_RenderFrame->SetWindowStyle(m_RenderFrame->GetWindowStyle() & ~wxSTAY_ON_TOP);
m_RenderParent = NULL;
// Clean framerate indications from the status bar.