ios: fix iphone landscape rendering

This commit is contained in:
Eric Warmenhoven 2025-07-07 22:02:45 -04:00
parent 3e3f989d45
commit f10818b243
No known key found for this signature in database
1 changed files with 14 additions and 11 deletions

View File

@ -592,14 +592,23 @@ void rarch_stop_draw_observer(void)
return;
CGRect screenSize = [screen bounds];
CGRect currentBounds = self.view.bounds;
bool isMultitasking = (currentBounds.size.width < screenSize.size.width ||
currentBounds.size.height < screenSize.size.height);
if (ios_running_on_ipad())
{
CGRect currentBounds = self.view.bounds;
bool isMultitasking = (currentBounds.size.width < screenSize.size.width ||
currentBounds.size.height < screenSize.size.height);
/* In multitasking mode, don't override the frame - let iOS handle it */
if (isMultitasking)
/* In multitasking mode, don't override the frame - let iOS handle it */
if (isMultitasking)
return;
}
if (settings->bools.video_notch_write_over_enable)
{
self.view.frame = screenSize;
return;
}
/* Only apply safe area adjustments when in full screen mode */
UIWindow *window = [[UIApplication sharedApplication] delegate].window;
@ -609,12 +618,6 @@ void rarch_stop_draw_observer(void)
UIEdgeInsets inset = window.safeAreaInsets;
UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
if (settings->bools.video_notch_write_over_enable)
{
self.view.frame = screenSize;
return;
}
switch (orientation)
{
case UIInterfaceOrientationPortrait: