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

+3 -3
View File
@@ -563,10 +563,10 @@ void OSDOverlayScreen::DrawForeground(UIContext &ui) {
void OSDOverlayScreen::update() {
// Partial version of UIScreen::update() but doesn't do event processing to avoid duplicate event processing.
bool portrait = UsePortraitLayout();
if (portrait != lastPortrait_) {
DeviceOrientation orientation = GetDeviceOrientation();
if (orientation != lastOrientation_) {
RecreateViews();
lastPortrait_ = portrait;
lastOrientation_ = orientation;
}
DoRecreateViews();