summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-02 01:56:59 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-02 03:48:54 -0800
commitf79c810d4bccd40bc7abd095a0306d6626a8db8f (patch)
tree6d335f31903e3f828db8e6c47fb6e667abf6904a /MobileCydia.mm
parent958ded7e72adfd81ecf4db8565429c40fbe02b40 (diff)
Use high-resolution icons for purpose badges.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm14
1 files changed, 9 insertions, 5 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index f113a80..7b4b70f 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4912,12 +4912,16 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
if (badge_ != nil) {
- CGSize size = [badge_ size];
+ CGRect rect;
+ rect.size = [badge_ size];
+
+ rect.size.width /= 2;
+ rect.size.height /= 2;
+
+ rect.origin.x = 36 - rect.size.width / 2;
+ rect.origin.y = 36 - rect.size.height / 2;
- [badge_ drawAtPoint:CGPointMake(
- 36 - size.width / 2,
- 36 - size.height / 2
- )];
+ [badge_ drawInRect:rect];
}
if (highlighted)