Skip to content

Commit

Permalink
Qt: Use game start fullscreen flag for BP too
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 5, 2024
1 parent f889136 commit a854ed2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/duckstation-qt/qthost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,9 +776,12 @@ void EmuThread::startFullscreenUI()
m_is_rendering_to_main = shouldRenderToMain();
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;
if (!Host::CreateGPUDevice(Settings::GetRenderAPIForRenderer(g_settings.gpu_renderer),
s_start_fullscreen_ui_fullscreen, &error) ||
if (!Host::CreateGPUDevice(Settings::GetRenderAPIForRenderer(g_settings.gpu_renderer), start_fullscreen, &error) ||
!FullscreenUI::Initialize())
{
Host::ReportErrorAsync("Error", error.GetDescription());
Expand Down

0 comments on commit a854ed2

Please sign in to comment.