Skip to content

Commit

Permalink
Fixed building on tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 11, 2018
1 parent 6384814 commit af823cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/uikit/SDL_uikitmodes.m
Expand Up @@ -324,6 +324,7 @@ @implementation SDL_DisplayModeData
}
}

#if !TARGET_OS_TV
void SDL_OnApplicationDidChangeStatusBarOrientation()
{
BOOL isLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
Expand Down Expand Up @@ -372,6 +373,7 @@ void SDL_OnApplicationDidChangeStatusBarOrientation()
SDL_SendDisplayEvent(display, SDL_DISPLAYEVENT_ORIENTATION, orientation);
}
}
#endif /* !TARGET_OS_TV */

#endif /* SDL_VIDEO_DRIVER_UIKIT */

Expand Down

0 comments on commit af823cc

Please sign in to comment.