Minor code update for less verbosity

--HG--
branch : iOS-improvements
This commit is contained in:
Alex Szpakowski
2014-08-06 00:45:11 -03:00
parent c11f89e140
commit 363f84f3b7

View File

@@ -63,11 +63,10 @@
- (NSUInteger)supportedInterfaceOrientations
{
NSUInteger orientationMask = 0;
const char *orientationsHint = SDL_GetHint(SDL_HINT_ORIENTATIONS);
const char *hint = SDL_GetHint(SDL_HINT_ORIENTATIONS);
if (orientationsHint != NULL) {
NSArray *orientations = [@(orientationsHint) componentsSeparatedByCharactersInSet:
[NSCharacterSet characterSetWithCharactersInString:@" "]];
if (hint != NULL) {
NSArray *orientations = [@(hint) componentsSeparatedByString:@" "];
if ([orientations containsObject:@"LandscapeLeft"]) {
orientationMask |= UIInterfaceOrientationMaskLandscapeLeft;