mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix not-render-to-main after start fullscreen+toggle
This commit is contained in:
parent
8751a2d330
commit
119b6bdfd5
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue