summaryrefslogtreecommitdiff
path: root/src/video/uikit/SDL_uikitwindow.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/uikit/SDL_uikitwindow.m')
-rw-r--r--src/video/uikit/SDL_uikitwindow.m14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/video/uikit/SDL_uikitwindow.m b/src/video/uikit/SDL_uikitwindow.m
index 8a0a5b1a..515f6c9d 100644
--- a/src/video/uikit/SDL_uikitwindow.m
+++ b/src/video/uikit/SDL_uikitwindow.m
@@ -20,6 +20,8 @@
*/
#include "SDL_config.h"
+#if SDL_VIDEO_DRIVER_UIKIT
+
#include "SDL_syswm.h"
#include "SDL_video.h"
#include "SDL_mouse.h"
@@ -88,11 +90,11 @@ static int SetupWindowData(_THIS, SDL_Window *window, UIWindow *uiwindow, SDL_bo
[UIApplication sharedApplication].statusBarHidden = NO;
}
- const UIDeviceOrientation o = [[UIDevice currentDevice] orientation];
- const BOOL landscape = (o == UIDeviceOrientationLandscapeLeft) ||
- (o == UIDeviceOrientationLandscapeRight);
- const BOOL rotate = ( ((window->w > window->h) && (!landscape)) ||
- ((window->w < window->h) && (landscape)) );
+ //const UIDeviceOrientation o = [[UIDevice currentDevice] orientation];
+ //const BOOL landscape = (o == UIDeviceOrientationLandscapeLeft) ||
+ // (o == UIDeviceOrientationLandscapeRight);
+ //const BOOL rotate = ( ((window->w > window->h) && (!landscape)) ||
+ // ((window->w < window->h) && (landscape)) );
// The View Controller will handle rotating the view when the
// device orientation changes. This will trigger resize events, if
@@ -215,4 +217,6 @@ UIKit_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
}
}
+#endif /* SDL_VIDEO_DRIVER_UIKIT */
+
/* vi: set ts=4 sw=4 expandtab: */