Skip to content

Commit

Permalink
Landscape Auto for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Florin9doi committed Mar 19, 2018
1 parent 78488a4 commit 8f38c79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UI/GameSettingsScreen.cpp
Expand Up @@ -656,7 +656,7 @@ void GameSettingsScreen::CreateViews() {

#if PPSSPP_PLATFORM(ANDROID)
if (System_GetPropertyInt(SYSPROP_DEVICE_TYPE) == DEVICE_TYPE_MOBILE) {
static const char *screenRotation[] = {"Auto", "Landscape", "Portrait", "Landscape Reversed", "Portrait Reversed"};
static const char *screenRotation[] = {"Auto", "Landscape", "Portrait", "Landscape Reversed", "Portrait Reversed", "Landscape Auto"};
PopupMultiChoice *rot = systemSettings->Add(new PopupMultiChoice(&g_Config.iScreenRotation, co->T("Screen Rotation"), screenRotation, 0, ARRAY_SIZE(screenRotation), co->GetName(), screenManager()));
rot->OnChoice.Handle(this, &GameSettingsScreen::OnScreenRotation);

Expand Down
3 changes: 3 additions & 0 deletions android/src/org/ppsspp/ppsspp/NativeActivity.java
Expand Up @@ -387,6 +387,9 @@ private void updateScreenRotation(String cause) {
case 4:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT);
break;
case 5:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
break;
}
}

Expand Down

0 comments on commit 8f38c79

Please sign in to comment.