From: Jay Freeman (saurik) Date: Sun, 16 Oct 2011 07:33:04 +0000 (+0000) Subject: Attempt to use @2x UIImages. X-Git-Tag: v0.9.3901~22 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/5ef3f01a1d9d3b8e7f8dd6b7bcda683562c80e3d Attempt to use @2x UIImages. --- diff --git a/Library.mm b/Library.mm index b4b8988..37b2334 100644 --- a/Library.mm +++ b/Library.mm @@ -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;