revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-ios / hidd / uikit / displaycontroller.m
blobba0de4a7fd21cb1d4940171071f2035631e84a53
1 #import "displaycontroller.h"
2 #import "native_api.h"
4 @implementation DisplayController
6 @synthesize FixedOrientation;
8 -(id)initWithSize:(CGRect)screenSize
10     self = [super init];
11     if (self)
12     {
13         UIView *rootView =  [[UIView alloc] initWithFrame:screenSize];
15         self.view = rootView;
16         [rootView release];
17     }
18     return self;
21 -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)o
23     switch (FixedOrientation)
24     {
25     case O_PORTRAIT:
26         return UIInterfaceOrientationIsPortrait(o);
28     case O_LANDSCAPE:
29         return UIInterfaceOrientationIsLandscape(o);
31     default:    /* Unspecified */
32         return YES;
33     }
36 @end