From 7f5da62d1c4360e5571ff457fe90d30f7b976d51 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Mon, 21 Mar 2011 15:54:16 +0000 Subject: [PATCH] Linux needs to have the wxWidgets window go to fullscreen after the display resolution is changed. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7389 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/Frame.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp index 23df496c6c..e22b8e7bd2 100644 --- a/Source/Core/DolphinWX/Src/Frame.cpp +++ b/Source/Core/DolphinWX/Src/Frame.cpp @@ -991,8 +991,15 @@ void CFrame::OnMouse(wxMouseEvent& event) void CFrame::DoFullscreen(bool bF) { +#ifndef __linux__ m_RenderFrame->ShowFullScreen(bF, wxFULLSCREEN_ALL); +#endif ToggleDisplayMode(bF); +#ifdef __linux__ + // Linux needs the wxWidgets window to go to fullscreen after the display resolution + // is changed in order for the backbuffer to get the correct size. + m_RenderFrame->ShowFullScreen(bF, wxFULLSCREEN_ALL); +#endif if (SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain) {