mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
iOS: Hide the status bar when immersive mode is enabled
prefersStatusBarHidden was dead code - it computed an orientation and a (commented out) user preference, then unconditionally returned false. So the status bar was only ever hidden on iPhone in landscape, and only because iOS does that on its own in compact height. Now it honors bImmersiveMode from the DisplayLayoutConfig matching the current orientation, so it also applies in portrait and on iPad. Adds the corresponding checkbox to the iOS system settings, and updates the status bar on rotation and when the setting is toggled. Also fixes a missing break in the ROTATE_UPDATED case in System_Notify, and a static/non-static mismatch on sceKernelLoadModuleBufferUsbWlan that broke the build (the header intentionally exposes it for sceVshBridge). Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JZk5y4Fzw811WJoNWZb8Sc
This commit is contained in:
1 parent
35f558d677
commit
8bfc151395
6 files changed
+44
-17
No files matched your search
@@ -432,6 +432,13 @@ void System_Notify(SystemNotification notification) {
|
||||
}
|
||||
});
|
||||
break;
|
||||
case SystemNotification::IMMERSIVE_MODE_CHANGE:
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
if (sharedViewController) {
|
||||
[sharedViewController immersiveModeChanged];
|
||||
}
|
||||
});
|
||||
break;
|
||||
case SystemNotification::UI_STATE_CHANGED:
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
if (sharedViewController) {
|
||||
@@ -452,6 +459,7 @@ void System_Notify(SystemNotification notification) {
|
||||
[UIViewController attemptRotationToDeviceOrientation];
|
||||
}
|
||||
});
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user