src/video/uikit/SDL_uikitviewcontroller.m
changeset 6003 fddf81967e2d
parent 6001 3ae3d1e58d59
child 6011 83a21d3bd5c1
     1.1 --- a/src/video/uikit/SDL_uikitviewcontroller.m	Tue Sep 27 21:07:09 2011 +0200
     1.2 +++ b/src/video/uikit/SDL_uikitviewcontroller.m	Tue Sep 27 22:51:26 2011 +0200
     1.3 @@ -33,7 +33,8 @@
     1.4  
     1.5  @implementation SDL_uikitviewcontroller
     1.6  
     1.7 -- (id)initWithSDLWindow:(SDL_Window *)_window {
     1.8 +- (id)initWithSDLWindow:(SDL_Window *)_window
     1.9 +{
    1.10      if ((self = [self init]) == nil) {
    1.11          return nil;
    1.12      }
    1.13 @@ -41,7 +42,8 @@
    1.14      return self;
    1.15  }
    1.16  
    1.17 -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient {
    1.18 +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient
    1.19 +{
    1.20      const char *orientationsCString;
    1.21      if ((orientationsCString = SDL_GetHint(SDL_HINT_ORIENTATIONS)) != NULL) {
    1.22          BOOL rotate = NO;
    1.23 @@ -96,12 +98,14 @@
    1.24      return NO;  // Nothing else is acceptable.
    1.25  }
    1.26  
    1.27 -- (void)loadView  {
    1.28 +- (void)loadView
    1.29 +{
    1.30      // do nothing.
    1.31  }
    1.32  
    1.33  // Send a resized event when the orientation changes.
    1.34 -- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
    1.35 +- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
    1.36 +{
    1.37      if ((self->window->flags & SDL_WINDOW_RESIZABLE) == 0) {
    1.38          return;   // don't care, we're just flipping over in this case.
    1.39      }