From 0147ea0ae8fb381a00af35d2bf84261ac9c03b3a Mon Sep 17 00:00:00 2001 From: jasaaved Date: Sat, 2 May 2026 07:45:14 -0700 Subject: [PATCH] Grey out "Use all screens" when "Exclusive fullscreen" is on Exclusive full screens is fundamentally a single monitor concept. It doesn't make sense to have "use all screens" and "Exclusive fullscreen". The order of the options have been swapped so "Fullscreen" and "Exclusive Fullscreen" are right next to each other. --- UI/GameSettingsScreen.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 994c210266..dce0396101 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -412,19 +412,10 @@ void GameSettingsScreen::CreateGraphicsSettings(UI::ViewGroup *graphicsSettings) fullscreenCheckbox->OnClick.Add([](UI::EventParams &e) { System_ApplyFullscreenState(); }); - if (System_GetPropertyInt(SYSPROP_DISPLAY_COUNT) > 1) { - CheckBox *fullscreenMulti = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenMulti, gr->T("Use all displays"))); - fullscreenMulti->SetEnabledFunc([] { - return g_Config.bFullScreen; - }); - fullscreenMulti->OnClick.Add([](UI::EventParams &e) { - System_ApplyFullscreenState(); - }); - } if (draw->GetDeviceCaps().fullScreenExclusiveSupported) { CheckBox* fullscreenExclusive = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenExclusive, gr->T("Exclusive fullscreen"))); fullscreenExclusive->SetEnabledFunc([] { - return g_Config.bFullScreen; + return g_Config.bFullScreen && !g_Config.bFullScreenMulti; }); fullscreenExclusive->OnClick.Add([this](UI::EventParams &e) { TriggerRestartOrDo([this]() { @@ -433,6 +424,15 @@ void GameSettingsScreen::CreateGraphicsSettings(UI::ViewGroup *graphicsSettings) }); }); } + if (System_GetPropertyInt(SYSPROP_DISPLAY_COUNT) > 1) { + CheckBox *fullscreenMulti = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenMulti, gr->T("Use all displays"))); + fullscreenMulti->SetEnabledFunc([] { + return g_Config.bFullScreen && !g_Config.bFullScreenExclusive; + }); + fullscreenMulti->OnClick.Add([](UI::EventParams &e) { + System_ApplyFullscreenState(); + }); + } #endif // Display Layout Editor: To avoid overlapping touch controls on large tablets, meet geeky demands for integer zoom/unstretched image etc. Choice *displayEditor = graphicsSettings->Add(new Choice(gr->T("Display layout & effects")));