From ec3f2f5367c6f1246d7e311e2293c6e0e83df0bc Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 15 Oct 2008 00:19:47 +0000 Subject: [PATCH] Minor adjustments. --- Cydia.app/package.html | 5 +++-- Cydia.app/package.js | 5 +++-- Cydia.mm | 10 ++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cydia.app/package.html b/Cydia.app/package.html index 46da6adf..95fb823f 100644 --- a/Cydia.app/package.html +++ b/Cydia.app/package.html @@ -158,9 +158,9 @@ - + - + @@ -206,6 +206,7 @@
+ diff --git a/Cydia.app/package.js b/Cydia.app/package.js index 762167af..1a8fc92b 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -134,8 +134,9 @@ $(function () { nid.html(id); var width = nid.width(); - if (width > 240) { - var spacing = (240.0 - nid.width()) / (id.length - 1) + "px"; + var max = 238.0; + if (width > max) { + var spacing = (max - nid.width()) / (id.length - 1) + "px"; nid.css("letter-spacing", spacing); } diff --git a/Cydia.mm b/Cydia.mm index f94557ab..b4762a19 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -282,9 +282,10 @@ extern NSString * const kCAFilterNearest; [invocation getReturnValue:&item.key]; } + static const size_t width = 32; static const size_t bits = 11; static const size_t slots = 1 << bits; - static const size_t passes = (32 + (bits - 1)) / bits; + static const size_t passes = (width + (bits - 1)) / bits; size_t *hist(new size_t[slots]); @@ -294,7 +295,7 @@ extern NSString * const kCAFilterNearest; for (size_t i(0); i != count; ++i) { uint32_t key(lhs[i].key); key >>= pass * bits; - key &= _not(uint32_t) >> 32 - bits; + key &= _not(uint32_t) >> width - bits; ++hist[key]; } @@ -308,7 +309,7 @@ extern NSString * const kCAFilterNearest; for (size_t i(0); i != count; ++i) { uint32_t key(lhs[i].key); key >>= pass * bits; - key &= _not(uint32_t) >> 32 - bits; + key &= _not(uint32_t) >> width - bits; rhs[hist[key]++] = lhs[i]; } @@ -6265,7 +6266,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { return; _UISwitchSlider *slider([cell control]); - // XXX: this is just weird BOOL value([slider value] != 0); NSMutableDictionary *metadata([package_ metadata]); @@ -6274,12 +6274,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { before = [number boolValue]; else before = NO; - NSLog(@"%@:%@ %@:%@ : %u:%u", cell, slider, name_, key, value, before); if (value != before) { [metadata setObject:[NSNumber numberWithBool:value] forKey:key]; Changed_ = true; - //[delegate_ performSelector:@selector(updateData) withObject:nil afterDelay:0]; [delegate_ updateData]; } } -- 2.45.2