From: Jay Freeman (saurik) Date: Thu, 2 Dec 2010 09:56:59 +0000 (-0800) Subject: Use high-resolution icons for purpose badges. X-Git-Tag: v1.1.0%b1~441 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/f79c810d4bccd40bc7abd095a0306d6626a8db8f Use high-resolution icons for purpose badges. --- diff --git a/MobileCydia.app/Purposes/commercial.png b/MobileCydia.app/Purposes/commercial.png index ba66d4bf..9c411ccf 100644 Binary files a/MobileCydia.app/Purposes/commercial.png and b/MobileCydia.app/Purposes/commercial.png differ diff --git a/MobileCydia.app/Purposes/console.png b/MobileCydia.app/Purposes/console.png index 48f7e880..08d18692 100644 Binary files a/MobileCydia.app/Purposes/console.png and b/MobileCydia.app/Purposes/console.png differ diff --git a/MobileCydia.app/Purposes/daemon.png b/MobileCydia.app/Purposes/daemon.png index 4593ee8d..896c9be3 100644 Binary files a/MobileCydia.app/Purposes/daemon.png and b/MobileCydia.app/Purposes/daemon.png differ diff --git a/MobileCydia.app/Purposes/extension.png b/MobileCydia.app/Purposes/extension.png index e7025b4d..59e051b5 100644 Binary files a/MobileCydia.app/Purposes/extension.png and b/MobileCydia.app/Purposes/extension.png differ diff --git a/MobileCydia.app/Purposes/library.png b/MobileCydia.app/Purposes/library.png index 3bcbc04f..e275e06e 100644 Binary files a/MobileCydia.app/Purposes/library.png and b/MobileCydia.app/Purposes/library.png differ diff --git a/MobileCydia.app/Purposes/uikit.png b/MobileCydia.app/Purposes/uikit.png index 2141d720..694107f8 100644 Binary files a/MobileCydia.app/Purposes/uikit.png and b/MobileCydia.app/Purposes/uikit.png differ diff --git a/MobileCydia.app/Purposes/x.png b/MobileCydia.app/Purposes/x.png index 0b24b741..2feac906 100644 Binary files a/MobileCydia.app/Purposes/x.png and b/MobileCydia.app/Purposes/x.png differ diff --git a/MobileCydia.mm b/MobileCydia.mm index f113a80c..7b4b70fe 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)