Split the display layout config between landscape and portrait orientations

This commit is contained in:
Henrik Rydgård committed 2025-11-05 12:49:51 +01:00
1 parent 3e2edbfe81
commit 67010ff2af
60 files changed
+480 -317

No files matched your search

+2 -2
View File
@@ -169,7 +169,7 @@ void PromptScreen::CreateViews() {
// Scrolling action menu to the right.
using namespace UI;
const bool portrait = UsePortraitLayout();
const bool portrait = GetDeviceOrientation() == DeviceOrientation::Portrait;
root_ = new AnchorLayout();
ViewGroup *rightColumnItems;
@@ -518,7 +518,7 @@ void CreditsScreen::CreateDialogViews(UI::ViewGroup *root) {
auto cr = GetI18NCategory(I18NCat::PSPCREDITS);
auto mm = GetI18NCategory(I18NCat::MAINMENU);
const bool portrait = UsePortraitLayout();
const bool portrait = GetDeviceOrientation() == DeviceOrientation::Portrait;
const bool gold = System_GetPropertyBool(SYSPROP_APP_GOLD);