From: Jay Freeman (saurik) Date: Fri, 25 Mar 2011 09:41:50 +0000 (-0700) Subject: Slow down PulseInterval_ on old devices. X-Git-Tag: v1.1.0%rc1~2 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/c73d524b3a41e1e27d5d02d96bc89d1414d4c768 Slow down PulseInterval_ on old devices. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 1d2c1d63..96f26516 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -673,7 +673,7 @@ class CYColor { /* }}} */ /* Random Global Variables {{{ */ -static const int PulseInterval_ = 50000; +static int PulseInterval_ = 500000; static const NSString *UI_; @@ -10777,7 +10777,10 @@ int main(int argc, char *argv[]) { /* }}} */ BOOL (*GSSystemHasCapability)(CFStringRef) = reinterpret_cast(dlsym(RTLD_DEFAULT, "GSSystemHasCapability")); - ShowPromoted_ = GSSystemHasCapability != NULL && GSSystemHasCapability(CFSTR("armv7")); + bool fast = GSSystemHasCapability != NULL && GSSystemHasCapability(CFSTR("armv7")); + + ShowPromoted_ = fast; + PulseInterval_ = fast ? 50000 : 500000; Colon_ = UCLocalize("COLON_DELIMITED"); Elision_ = UCLocalize("ELISION");