Skip to content

Commit

Permalink
Minor code update for less verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Aug 6, 2014
1 parent 2096583 commit 3628997
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/video/uikit/SDL_uikitviewcontroller.m
Expand Up @@ -63,11 +63,10 @@ - (void)viewDidLayoutSubviews
- (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;
Expand Down

0 comments on commit 3628997

Please sign in to comment.