Permalink
Browse files

Qt/D3D: Fix render widget size not being restored properly

  • Loading branch information...
spycrab committed May 16, 2018
1 parent 9bdf7c4 commit eef2092854e55affd07ab4e02e3bb966c7d6eb72
Showing with 7 additions and 3 deletions.
  1. +7 −3 Source/Core/DolphinQt2/MainWindow.cpp
@@ -667,6 +667,10 @@ void MainWindow::FullScreen()
// settings. If it's set to be fullscreen then it just remakes the window,
// which probably isn't ideal.
bool was_fullscreen = m_render_widget->isFullScreen();
if (!was_fullscreen)
m_render_widget_geometry = m_render_widget->saveGeometry();
HideRenderWidget(false);
SetFullScreenResolution(!was_fullscreen);
@@ -676,7 +680,6 @@ void MainWindow::FullScreen()
}
else
{
m_render_widget_geometry = m_render_widget->saveGeometry();
m_render_widget->showFullScreen();
}
}
@@ -761,6 +764,9 @@ void MainWindow::ShowRenderWidget()
return;
}
SetFullScreenResolution(false);
Host::GetInstance()->SetRenderFullscreen(false);
if (SConfig::GetInstance().bRenderToMain)
{
// If we're rendering to main, add it to the stack and update our title when necessary.
@@ -781,8 +787,6 @@ void MainWindow::ShowRenderWidget()
m_render_widget->showNormal();
m_render_widget->restoreGeometry(m_render_widget_geometry);
}
SetFullScreenResolution(false);
}
void MainWindow::HideRenderWidget(bool reinit)

0 comments on commit eef2092

Please sign in to comment.