From f98962e5a9e0baa28f1fca154ebaa33c52bfb654 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 30 Oct 2014 11:16:31 -0700 Subject: I apparently lost this rotation commit somewhere. --- CyteKit/ViewController.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CyteKit') diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm index b40ac6d..1991bcf 100644 --- a/CyteKit/ViewController.mm +++ b/CyteKit/ViewController.mm @@ -26,8 +26,6 @@ #include "iPhonePrivate.h" -extern bool IsWildcat_; - @implementation UIViewController (Cydia) - (BOOL) hasLoaded { @@ -109,7 +107,9 @@ extern bool IsWildcat_; } - (NSUInteger) supportedInterfaceOrientations { - return IsWildcat_ ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait; + extern bool IsWildcat_; + extern CGFloat ScreenScale_; + return IsWildcat_ || ScreenScale_ == 3 ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait; } - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { -- cgit v1.2.3