diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-30 11:16:31 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-30 11:16:31 -0700 |
commit | f98962e5a9e0baa28f1fca154ebaa33c52bfb654 (patch) | |
tree | 13ddb10886745fb13fcc40d0ba5d7fe6d9a09479 | |
parent | 856b8388ba6423823008aa77e4b83a4b9a37983b (diff) |
I apparently lost this rotation commit somewhere.
-rw-r--r-- | CyteKit/ViewController.mm | 6 | ||||
-rw-r--r-- | MobileCydia.mm | 2 |
2 files changed, 4 insertions, 4 deletions
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 { diff --git a/MobileCydia.mm b/MobileCydia.mm index 15a4f81..c57910f 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -820,7 +820,7 @@ bool Changed_; static time_t now_; bool IsWildcat_; -static CGFloat ScreenScale_; +CGFloat ScreenScale_; static NSString *Idiom_; static _H<NSString> Firmware_; static NSString *Major_; |