]> git.saurik.com Git - cydia.git/commitdiff
Slow down PulseInterval_ on old devices.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Mar 2011 09:41:50 +0000 (02:41 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Mar 2011 09:41:50 +0000 (02:41 -0700)
MobileCydia.mm

index 1d2c1d63b557db505f22b2d229288204a1ec93ab..96f265169904a5c61b15e22237a86cab73f0ce2c 100644 (file)
@@ -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<BOOL (*)(CFStringRef)>(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");