Skip to content

Commit

Permalink
Qt: Fix not-render-to-main after start fullscreen+toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek authored and refractionpcsx2 committed May 5, 2022
1 parent 8751a2d commit 119b6bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pcsx2-qt/EmuThread.cpp
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions pcsx2-qt/MainWindow.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 119b6bd

Please sign in to comment.