From: Jay Freeman (saurik) Date: Thu, 7 Oct 2010 02:23:32 +0000 (-0700) Subject: We don't want a compile-time flag for RotationEnabled: we want it to work that way... X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/ae22446dad54f9c244d804e40febdb828caae0b0?ds=sidebyside We don't want a compile-time flag for RotationEnabled: we want it to work that way only if we are on an iPad. --- diff --git a/Cydia.mm b/Cydia.mm index b86bb304..c8e2c1bc 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -386,7 +386,6 @@ static const CFStringCompareFlags LaxCompareFlags_ = kCFCompareCaseInsensitive | #define ShowInternals (0 && !ForRelease) #define IgnoreInstall (0 && !ForRelease) #define RecycleWebViews 0 -#define RotationEnabled 1 #define RecyclePackageViews (1 && ForRelease) #define AlwaysReload (1 && !ForRelease) @@ -7655,11 +7654,7 @@ freeing the view controllers on tab change */ } - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { -#ifdef RotationEnabled - return YES; -#else - return NO; -#endif + return IsWildcat_; } - (void) setTabBarController:(UITabBarController *)controller {