From: Jay Freeman (saurik) Date: Sat, 22 Oct 2011 11:15:17 +0000 (+0000) Subject: Do not attempt to support @1x themes. X-Git-Tag: v0.9.3904~30 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/0759153330ae82ce02454740abaf8e0372aafee3 Do not attempt to support @1x themes. --- diff --git a/Library.mm b/Library.mm index e4a9df1..91bda3d 100644 --- a/Library.mm +++ b/Library.mm @@ -276,9 +276,10 @@ static NSArray *$useScale$(NSArray *files, bool use = true) { [scaled addObject:[NSString stringWithFormat:@"%@~iphone.%@", base, extension]]; [scaled addObject:file]; - NSString *rest([base substringWithRange:NSMakeRange(0, [base length] - 3)]); + // XXX: this actually can't be used, as the person loading the file doesn't realize that the @2x changed + /*NSString *rest([base substringWithRange:NSMakeRange(0, [base length] - 3)]); [scaled addObject:[NSString stringWithFormat:@"%@~iphone.%@", rest, extension]]; - [scaled addObject:[rest stringByAppendingPathExtension:extension]]; + [scaled addObject:[rest stringByAppendingPathExtension:extension]];*/ } else { // XXX: this code isn't really complete