From: Jay Freeman (saurik) Date: Wed, 2 Feb 2011 07:39:14 +0000 (-0800) Subject: Use IsWildcat_, not UI_USER_INTERFACE_IDIOM(). X-Git-Tag: v1.1.0%b1~377^2~8 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/f333f6c59d8af7624e10301b13ce631a4bd843a0?hp=386a58f2bf90ce419b3a81de3cea948b46dcf148 Use IsWildcat_, not UI_USER_INTERFACE_IDIOM(). --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 24aa3d00..f8c2c9a9 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -1071,7 +1071,7 @@ static _transient NSMutableDictionary *Sources_; static bool Changed_; static time_t now_; -static bool IsWildcat_; +bool IsWildcat_; /* }}} */ /* Display Helpers {{{ */ diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index 81c8739c..3e6e6927 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -5,6 +5,8 @@ #import "RVBook.h" +extern bool IsWildcat_; + @implementation CYViewController - (void) setDelegate:(id)delegate { delegate_ = delegate; @@ -12,6 +14,6 @@ - (void) reloadData { } - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad || orientation == UIInterfaceOrientationPortrait); + return IsWildcat_ || orientation == UIInterfaceOrientationPortrait; } @end