Add convenient UI on the pause screen for changing/locking the screen orientation

This commit is contained in:
Henrik Rydgård committed 2025-11-26 11:14:37 +01:00
1 parent 9035485abf
commit ed25b5e991
21 files changed
+247 -87

No files matched your search

+7
View File
@@ -1511,6 +1511,13 @@ void Config::PostLoadCleanup() {
if (g_Config.sCustomDriver == "Default") {
g_Config.sCustomDriver = "";
}
// Squash unsupported screen rotations.
if (g_Config.iScreenRotation == ROTATION_AUTO_HORIZONTAL) {
g_Config.iScreenRotation = ROTATION_LOCKED_HORIZONTAL;
} else if (g_Config.iScreenRotation == ROTATION_LOCKED_VERTICAL180) {
g_Config.iScreenRotation = ROTATION_LOCKED_VERTICAL;
}
}
void Config::PreSaveCleanup() {