]> git.saurik.com Git - winterboard.git/commitdiff
Attempt to use @2x UIImages.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 16 Oct 2011 07:33:04 +0000 (07:33 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 16 Oct 2011 07:33:04 +0000 (07:33 +0000)
Library.mm

index b4b8988ac6425c1a323e2eac4104854aa6606319..37b2334577280098b9fb29e00a6f42ef5e814c2a 100644 (file)
@@ -246,6 +246,12 @@ static NSString *$getTheme$(NSArray *files, bool rescale = false) {
 
     for (NSString *theme in Themes_)
         for (NSString *file in files) {
+            if (rescale && /*$getScale$(file) == 1 &&*/ Scale_ == 2) {
+                path = [NSString stringWithFormat:@"%@/%@@2x.%@", theme, [file stringByDeletingPathExtension], [file pathExtension]];
+                if ([Manager_ fileExistsAtPath:path])
+                    goto set;
+            }
+
             path = [NSString stringWithFormat:@"%@/%@", theme, file];
             if ([Manager_ fileExistsAtPath:path])
                 goto set;