mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Split the display layout config between landscape and portrait orientations
This commit is contained in:
1 parent
3e2edbfe81
commit
67010ff2af
60 files changed
+480
-317
No files matched your search
+1
-1
@@ -15,7 +15,7 @@ void IAPScreen::CreateViews() {
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
auto mm = GetI18NCategory(I18NCat::MAINMENU);
|
||||
|
||||
const bool vertical = UsePortraitLayout();
|
||||
const bool vertical = GetDeviceOrientation() == DeviceOrientation::Portrait;
|
||||
|
||||
root_ = new LinearLayout(vertical ? ORIENT_VERTICAL : ORIENT_HORIZONTAL, new LayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
|
||||
|
||||
Reference in new issue
Block a user