Qt: Use game start fullscreen flag for BP too

This commit is contained in:
Stenzek 2024-11-05 13:29:58 +10:00
parent f889136227
commit a854ed2da1
No known key found for this signature in database
1 changed files with 5 additions and 2 deletions

View File

@ -776,9 +776,12 @@ void EmuThread::startFullscreenUI()
m_is_rendering_to_main = shouldRenderToMain(); m_is_rendering_to_main = shouldRenderToMain();
m_run_fullscreen_ui = true; m_run_fullscreen_ui = true;
// borrow the game start fullscreen flag
const bool start_fullscreen =
(s_start_fullscreen_ui_fullscreen || Host::GetBaseBoolSettingValue("Main", "StartFullscreen", false));
Error error; Error error;
if (!Host::CreateGPUDevice(Settings::GetRenderAPIForRenderer(g_settings.gpu_renderer), if (!Host::CreateGPUDevice(Settings::GetRenderAPIForRenderer(g_settings.gpu_renderer), start_fullscreen, &error) ||
s_start_fullscreen_ui_fullscreen, &error) ||
!FullscreenUI::Initialize()) !FullscreenUI::Initialize())
{ {
Host::ReportErrorAsync("Error", error.GetDescription()); Host::ReportErrorAsync("Error", error.GetDescription());