summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
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)