src/video/uikit/SDL_uikitwindow.m
changeset 6044 35448a5ea044
parent 6014 7a8b72b88d86
child 6064 498e0234dfe6
     1.1 --- a/src/video/uikit/SDL_uikitwindow.m	Mon Oct 31 03:06:32 2011 -0400
     1.2 +++ b/src/video/uikit/SDL_uikitwindow.m	Mon Oct 31 05:56:58 2011 -0400
     1.3 @@ -20,6 +20,8 @@
     1.4  */
     1.5  #include "SDL_config.h"
     1.6  
     1.7 +#if SDL_VIDEO_DRIVER_UIKIT
     1.8 +
     1.9  #include "SDL_syswm.h"
    1.10  #include "SDL_video.h"
    1.11  #include "SDL_mouse.h"
    1.12 @@ -88,11 +90,11 @@
    1.13              [UIApplication sharedApplication].statusBarHidden = NO;
    1.14          }
    1.15  
    1.16 -        const UIDeviceOrientation o = [[UIDevice currentDevice] orientation];
    1.17 -        const BOOL landscape = (o == UIDeviceOrientationLandscapeLeft) ||
    1.18 -                                   (o == UIDeviceOrientationLandscapeRight);
    1.19 -        const BOOL rotate = ( ((window->w > window->h) && (!landscape)) ||
    1.20 -                              ((window->w < window->h) && (landscape)) );
    1.21 +        //const UIDeviceOrientation o = [[UIDevice currentDevice] orientation];
    1.22 +        //const BOOL landscape = (o == UIDeviceOrientationLandscapeLeft) ||
    1.23 +        //                           (o == UIDeviceOrientationLandscapeRight);
    1.24 +        //const BOOL rotate = ( ((window->w > window->h) && (!landscape)) ||
    1.25 +        //                      ((window->w < window->h) && (landscape)) );
    1.26  
    1.27          // The View Controller will handle rotating the view when the
    1.28          //  device orientation changes. This will trigger resize events, if
    1.29 @@ -215,4 +217,6 @@
    1.30      }
    1.31  }
    1.32  
    1.33 +#endif /* SDL_VIDEO_DRIVER_UIKIT */
    1.34 +
    1.35  /* vi: set ts=4 sw=4 expandtab: */