mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Use default supported rotations when none are specified
This commit is contained in:
parent
fd071fb4ab
commit
1b1ae8e48e
@ -173,7 +173,7 @@ namespace
|
||||
|
||||
NSArray *supportedOrientations = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UISupportedInterfaceOrientations"];
|
||||
if (!supportedOrientations)
|
||||
return false;
|
||||
return (1 << orientation) & [rootViewController supportedInterfaceOrientations];
|
||||
|
||||
int appFlags = 0;
|
||||
if ([supportedOrientations containsObject:@"UIInterfaceOrientationPortrait"])
|
||||
|
@ -55,14 +55,6 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
- (BOOL)shouldAutorotate;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Returns the supported orientations (iOS >= 6)
|
||||
///
|
||||
/// \return A combination of all the supported orientations
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
- (NSUInteger)supportedInterfaceOrientations;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Member data
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -46,12 +46,4 @@
|
||||
return self.orientationCanChange;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskAll;
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user