Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
change to direct MakeTransform
  • Loading branch information
prime31 committed Aug 18, 2010
1 parent 3dda46e commit d5c5aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NativeCode/UnityNativeManager.mm
Expand Up @@ -101,9 +101,9 @@ - (void)showViewControllerWithName:(NSString*)name

// If we are landscape, manually rotate our view
if( [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationLandscapeLeft )
controller.view.transform = CGAffineTransformMakeRotation( -1.5708 );
controller.view.transform = CGAffineTransformMake( 0, -1, 1, 0, 0, 0 ); //controller.view.transform = CGAffineTransformMakeRotation( -1.5708 );
else if( [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationLandscapeRight )
controller.view.transform = CGAffineTransformMakeRotation( 1.5708 );
controller.view.transform = CGAffineTransformMake( 0, 1, -1, 0, 0, 0 ); //controller.view.transform = CGAffineTransformMakeRotation( 1.5708 );

UIWindow *window = [UIApplication sharedApplication].keyWindow;

Expand Down

0 comments on commit d5c5aa2

Please sign in to comment.