From 1de17d20e1ce7e06c4bf34d62e3e7d57a63a7949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Tue, 27 Feb 2018 12:32:20 +0100 Subject: [PATCH] Fix render surface when using Render to Main and debugger This fixes a regression introduced by de632fc9c. --- Source/Core/DolphinWX/FrameTools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 6542e46d84..ded328f7bc 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -603,7 +603,7 @@ void CFrame::OnRenderParentResize(wxSizeEvent& event) if (Core::GetState() != Core::State::Uninitialized) { int width, height; - m_render_frame->GetClientSize(&width, &height); + m_render_parent->GetClientSize(&width, &height); if (!SConfig::GetInstance().bRenderToMain && !RendererIsFullscreen() && !m_render_frame->IsMaximized() && !m_render_frame->IsIconized()) {