mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-10 03:44:26 +00:00
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:
|
case WM_USER_CREATE:
|
||||||
if (SConfig::GetInstance().bHideCursor)
|
if (SConfig::GetInstance().bHideCursor)
|
||||||
m_render_parent->SetCursor(wxCURSOR_BLANK);
|
m_render_parent->SetCursor(wxCURSOR_BLANK);
|
||||||
|
if (SConfig::GetInstance().bFullscreen)
|
||||||
|
DoFullscreen(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDM_PANIC:
|
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);
|
m_render_parent = new wxPanel(m_render_frame, IDM_MPANEL, wxDefaultPosition, wxDefaultSize, 0);
|
||||||
#endif
|
#endif
|
||||||
m_render_frame->Show();
|
m_render_frame->Show();
|
||||||
|
m_render_frame->Raise();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
@ -724,15 +725,10 @@ void CFrame::StartGame(std::unique_ptr<BootParameters> boot)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
wxBusyCursor hourglass;
|
wxBusyCursor hourglass;
|
||||||
|
|
||||||
DoFullscreen(SConfig::GetInstance().bFullscreen);
|
|
||||||
|
|
||||||
SetDebuggerStartupParameters();
|
SetDebuggerStartupParameters();
|
||||||
|
|
||||||
if (!BootManager::BootCore(std::move(boot)))
|
if (!BootManager::BootCore(std::move(boot)))
|
||||||
{
|
{
|
||||||
DoFullscreen(false);
|
|
||||||
|
|
||||||
// Destroy the renderer frame when not rendering to main
|
// Destroy the renderer frame when not rendering to main
|
||||||
if (!SConfig::GetInstance().bRenderToMain)
|
if (!SConfig::GetInstance().bRenderToMain)
|
||||||
m_render_frame->Destroy();
|
m_render_frame->Destroy();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user