Fixed the window size changing slightly each time the game window is maximised or changed to full-screen mode. Fixes issue 3916.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6861 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
skidau 2011-01-16 12:18:34 +00:00
parent e3d7e39b3e
commit 2911658d50

View File

@ -717,7 +717,7 @@ void CFrame::OnRenderParentResize(wxSizeEvent& event)
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain &&
!RendererIsFullscreen() && !m_RenderFrame->IsMaximized() && !m_RenderFrame->IsIconized())
{
m_RenderFrame->GetSize(&width, &height);
m_RenderFrame->GetClientSize(&width, &height);
SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowWidth = width;
SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowHeight = height;
}