mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
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.
This commit is contained in:
1 parent
5e25118043
commit
0147ea0ae8
1 file changed
+10
-10
+10
-10
@@ -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")));
|
||||
|
||||
Reference in new issue
Block a user