Qt: Fix not-render-to-main after start fullscreen+toggle

This commit is contained in:
Connor McLaughlin 2022-05-03 14:26:32 +10:00 committed by refractionpcsx2
parent 8751a2d330
commit 119b6bdfd5
2 changed files with 1 additions and 3 deletions

View File

@ -113,7 +113,7 @@ void EmuThread::startVM(std::shared_ptr<VMBootParameters> boot_params)
// create the display, this may take a while...
m_is_fullscreen = boot_params->fullscreen.value_or(QtHost::GetBaseBoolSettingValue("UI", "StartFullscreen", false));
m_is_rendering_to_main = !m_is_fullscreen && QtHost::GetBaseBoolSettingValue("UI", "RenderToMainWindow", true);
m_is_rendering_to_main = QtHost::GetBaseBoolSettingValue("UI", "RenderToMainWindow", true);
if (!VMManager::Initialize(*boot_params))
return;

View File

@ -1108,8 +1108,6 @@ void MainWindow::closeEvent(QCloseEvent* event)
DisplayWidget* MainWindow::createDisplay(bool fullscreen, bool render_to_main)
{
pxAssertRel(!fullscreen || !render_to_main, "Not rendering to main and fullscreen");
HostDisplay* host_display = Host::GetHostDisplay();
if (!host_display)
return nullptr;