- if (use) {
- if (Scale_ != 1) {
- [scaled addObject:[NSString stringWithFormat:@"%@@%ux~%@.%@", base, Scale_, idiom, extension]];
- [scaled addObject:[NSString stringWithFormat:@"%@@%ux.%@", base, Scale_, extension]];
- }
-
- for (unsigned scale(3); scale >= 2; --scale)
- if (scale != Scale_) {
- [scaled addObject:[NSString stringWithFormat:@"%@@%ux~%@.%@", base, scale, idiom, extension]];
- [scaled addObject:[NSString stringWithFormat:@"%@@%ux.%@", base, scale, extension]];
- }
+#define WBScaleImage(scale) \
+ if (scale == 1) { \
+ [scaled addObject:[NSString stringWithFormat:@"%@~%@.%@", base, idiom, extension]]; \
+ [scaled addObject:file]; \
+ } else { \
+ [scaled addObject:[NSString stringWithFormat:@"%@@%ux~%@.%@", base, scale, idiom, extension]]; \
+ [scaled addObject:[NSString stringWithFormat:@"%@@%ux.%@", base, scale, extension]]; \
+ }