Rework the pause screen in portrait mode. Right-align popup menus if too far to the right on the screen.

This commit is contained in:
Henrik Rydgård committed 2025-11-22 14:31:01 +01:00
1 parent f2356c5532
commit 77c7ba1435
9 files changed
+164 -119

No files matched your search

+1 -1
View File
@@ -211,7 +211,7 @@ void DisplayLayoutScreen::CreateViews() {
root_->SetExclusiveTouch(true);
// Add indicator of the current mode we're editing. Not sure why these strings are in Controls.
root_->Add(new TextView(portrait ? co->T("Portrait") : co->T("Landscape"), new AnchorLayoutParams(portrait ? 10.0f : NONE, 10.0f, NONE, NONE)));
root_->Add(new TextView(portrait ? co->T("Portrait") : co->T("Landscape"), new AnchorLayoutParams(portrait ? 10.0f : NONE, 10.0f, NONE, NONE)))->SetSmall(true);
DisplayLayoutConfig &config = g_Config.GetDisplayLayoutConfig(GetDeviceOrientation());
bool internalPortrait = config.iInternalScreenRotation == ROTATION_LOCKED_VERTICAL || config.iInternalScreenRotation == ROTATION_LOCKED_VERTICAL180;