From 505d30be3d922f2fba7abe6fd9880f3c8e66767a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 26 Jan 2018 15:15:35 +1000 Subject: [PATCH] DolphinWX: Move fullscreen switch to after startup is complete This means that any error messages won't be hidden by the fullscreen window. --- Source/Core/DolphinWX/Frame.cpp | 2 ++ Source/Core/DolphinWX/FrameTools.cpp | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index c9745efb33..26fb66b958 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -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: diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 28bce659e3..7f35afbc5f 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -717,6 +717,7 @@ void CFrame::StartGame(std::unique_ptr 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 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();