From c73d524b3a41e1e27d5d02d96bc89d1414d4c768 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 25 Mar 2011 02:41:50 -0700 Subject: Slow down PulseInterval_ on old devices. --- MobileCydia.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 1d2c1d6..96f2651 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"); -- cgit v1.2.3