Move the "Ignore insets when centering" setting to the display layout screen.

This commit is contained in:
Henrik Rydgård committed 2022-12-17 16:18:35 +01:00
1 parent ba8e52d228
commit 07c043a4ee
2 files changed
+11 -9

No files matched your search

+11
View File
@@ -249,6 +249,17 @@ void DisplayLayoutScreen::CreateViews() {
aspectRatio->SetHasDropShadow(false);
aspectRatio->SetLiveUpdate(true);
#if PPSSPP_PLATFORM(ANDROID)
// Hide insets option if no insets, or OS too old.
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 28 &&
(System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_LEFT) != 0.0f ||
System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_TOP) != 0.0f ||
System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_RIGHT) != 0.0f ||
System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_BOTTOM) != 0.0f)) {
rightColumn->Add(new CheckBox(&g_Config.bIgnoreScreenInsets, gr->T("Ignore camera notch when centering")));
}
#endif
mode_ = new ChoiceStrip(ORIENT_HORIZONTAL, new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT));
mode_->AddChoice(di->T("Inactive"));
mode_->AddChoice(di->T("Move"));