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

This commit is contained in:
Connor McLaughlin authored and refractionpcsx2 committed 2022-05-05 09:51:56 +01:00
1 parent 8751a2d330
commit 119b6bdfd5
2 files changed
+1 -3

No files matched your search

+1 -1
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;
-2
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;