diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-10-15 00:19:47 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:08:50 +0000 |
commit | ec3f2f5367c6f1246d7e311e2293c6e0e83df0bc (patch) | |
tree | 5c82eb912343ec5e760da643c2b3a263d1f32f9b | |
parent | dec6029f07c75ffe08b7edcfa26455c3ee7692e8 (diff) |
Minor adjustments.
-rw-r--r-- | Cydia.app/package.html | 5 | ||||
-rw-r--r-- | Cydia.app/package.js | 5 | ||||
-rw-r--r-- | Cydia.mm | 10 |
3 files changed, 10 insertions, 10 deletions
diff --git a/Cydia.app/package.html b/Cydia.app/package.html index 46da6ad..95fb823 100644 --- a/Cydia.app/package.html +++ b/Cydia.app/package.html @@ -158,9 +158,9 @@ <label>This is a commercial package!</label> </div> - <a class="console" href="console.html"> + <a class="console" href="http://cydia.saurik.com/purpose/console/"> <img class="icon" src="console.png"/> - <label>This is a console application!</label> + <label>This is a console package!</label> </a> <a id="application"> @@ -206,6 +206,7 @@ <div id="description"></div> <a class="homepage" id="homepage-href"> + <img class="icon" src="web.png"/> <label>More Information</label> </a> </fieldset> diff --git a/Cydia.app/package.js b/Cydia.app/package.js index 762167a..1a8fc92 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); } @@ -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]; } } |