mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 09:09:29 +01:00
Split the display layout config between landscape and portrait orientations
This commit is contained in:
1 parent
174d45279c
commit
4994246c8b
61 files changed
+482
-317
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user