Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-06-12 23:24:40 -05:00 committed by GitHub
parent 1fe2b9f684
commit addc8cc914
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -802,13 +802,13 @@ static int contrastMode() {
if ([self fullscreen] && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
return UIInterfaceOrientationLandscapeRight;
}
return [super preferredInterfaceOrientationForPresentation];
return %orig;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
if ([self fullscreen] && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
return UIInterfaceOrientationMaskLandscape;
}
return [super supportedInterfaceOrientations];
return %orig;
}
%new
- (void)forceRightFullscreenOrientation {