istereo

diff src/ui.m @ 36:834503dcb486

fixed the rotated gui problem
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Sep 2011 10:25:03 +0300
parents 23e5d274b2a2
children ff055bff6a15
line diff
     1.1 --- a/src/ui.m	Fri Sep 09 10:03:42 2011 +0300
     1.2 +++ b/src/ui.m	Fri Sep 09 10:25:03 2011 +0300
     1.3 @@ -28,6 +28,9 @@
     1.4  {
     1.5  	[super viewDidLoad];
     1.6  	
     1.7 +	self.view.center = CGPointMake(160, 240);
     1.8 +	self.view.transform = CGAffineTransformMakeRotation(M_PI / 2.0);
     1.9 +			
    1.10  	[slider_split setValue: 1.0 - split];
    1.11  	sw_stereo.on = stereo ? YES : NO;
    1.12  	grp_mode.selectedSegmentIndex = use_bump ? 1 : 0;	
    1.13 @@ -35,10 +38,10 @@
    1.14  
    1.15  
    1.16  // Override to allow orientations other than the default portrait orientation.
    1.17 -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    1.18 +/*- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    1.19      // Return YES for supported orientations.
    1.20      return interfaceOrientation == UIInterfaceOrientationLandscapeRight;
    1.21 -}
    1.22 +}*/
    1.23  
    1.24  
    1.25  - (void)didReceiveMemoryWarning {