From: Jay Freeman (saurik) Date: Thu, 30 Oct 2014 18:16:31 +0000 (-0700) Subject: I apparently lost this rotation commit somewhere. X-Git-Tag: v1.1.15~4 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/f98962e5a9e0baa28f1fca154ebaa33c52bfb654 I apparently lost this rotation commit somewhere. --- diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm index b40ac6de..1991bcfd 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 15a4f815..c57910f9 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 Firmware_; static NSString *Major_;