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
This commit is contained in:
Glenn Rice 2011-03-21 15:54:16 +00:00
parent 0daacc04d3
commit 7f5da62d1c

View File

@ -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)
{