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")));