mirror of
https://github.com/LIJI32/SameBoy.git
synced 2026-10-12 02:06:38 +00:00
Fix rotation in certain iOS versions
This commit is contained in:
@@ -41,6 +41,7 @@ static UIInterfaceOrientation CurrentOrientation(void)
|
||||
}
|
||||
return [UIApplication sharedApplication].statusBarOrientation;
|
||||
}
|
||||
|
||||
static UIImage *CreateMenuImage(NSString *name)
|
||||
{
|
||||
static const unsigned size = 20;
|
||||
@@ -2581,7 +2582,9 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
|
||||
}
|
||||
else {
|
||||
_backgroundView.fullScreenMode = GBControllerFocusOff;
|
||||
[self recreateLayoutsWithThemeNamed:[[NSUserDefaults standardUserDefaults] stringForKey:@"GBInterfaceTheme"]];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self recreateLayoutsWithThemeNamed:[[NSUserDefaults standardUserDefaults] stringForKey:@"GBInterfaceTheme"]];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user