Skip to content
Permalink
Browse files

Minor code update for less verbosity

  • Loading branch information
slime73 committed Aug 6, 2014
1 parent 2096583 commit 362899776ea0b567a25b62a2a25bc70d5cfcbb33
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/video/uikit/SDL_uikitviewcontroller.m
@@ -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;

0 comments on commit 3628997

Please sign in to comment.