DolphinWX: Move fullscreen switch to after startup is complete
This means that any error messages won't be hidden by the fullscreen window.
This commit is contained in:
parent
c790077c13
commit
505d30be3d
|
@ -761,6 +761,8 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
|||
case WM_USER_CREATE:
|
||||
if (SConfig::GetInstance().bHideCursor)
|
||||
m_render_parent->SetCursor(wxCURSOR_BLANK);
|
||||
if (SConfig::GetInstance().bFullscreen)
|
||||
DoFullscreen(true);
|
||||
break;
|
||||
|
||||
case IDM_PANIC:
|
||||
|
|
|
@ -717,6 +717,7 @@ void CFrame::StartGame(std::unique_ptr<BootParameters> boot)
|
|||
m_render_parent = new wxPanel(m_render_frame, IDM_MPANEL, wxDefaultPosition, wxDefaultSize, 0);
|
||||
#endif
|
||||
m_render_frame->Show();
|
||||
m_render_frame->Raise();
|
||||
}
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
@ -724,15 +725,10 @@ void CFrame::StartGame(std::unique_ptr<BootParameters> boot)
|
|||
#endif
|
||||
|
||||
wxBusyCursor hourglass;
|
||||
|
||||
DoFullscreen(SConfig::GetInstance().bFullscreen);
|
||||
|
||||
SetDebuggerStartupParameters();
|
||||
|
||||
if (!BootManager::BootCore(std::move(boot)))
|
||||
{
|
||||
DoFullscreen(false);
|
||||
|
||||
// Destroy the renderer frame when not rendering to main
|
||||
if (!SConfig::GetInstance().bRenderToMain)
|
||||
m_render_frame->Destroy();
|
||||
|
|
Loading…
Reference in New Issue