]> git.saurik.com Git - winterboard.git/commitdiff
Support SMSBackground@2x.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 19 Oct 2011 04:40:52 +0000 (04:40 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 19 Oct 2011 04:40:52 +0000 (04:40 +0000)
Library.mm

index fd5a6d5b17e3bab0c2b67bd9d28779c2ab9148e8..aae2063992d6d3dd1cecc3ef425dfa159897dbf6 100644 (file)
@@ -1482,10 +1482,8 @@ MSInstanceMessageHook2(id, CKTranscriptTableView, initWithFrame,style, CGRect, f
 MSInstanceMessageHook0(void, CKTranscriptController, loadView) {
     MSOldCall();
 
 MSInstanceMessageHook0(void, CKTranscriptController, loadView) {
     MSOldCall();
 
-    if (NSString *path = $getTheme$([NSArray arrayWithObjects:@"SMSBackground.png", @"SMSBackground.jpg", nil]))
-        if (UIImage *image = [[UIImage alloc] initWithContentsOfFile:path]) {
-            [image autorelease];
-
+    if (NSString *path = $getTheme$($useScale$([NSArray arrayWithObjects:@"SMSBackground.png", @"SMSBackground.jpg", nil])))
+        if (UIImage *image = $getImage$(path)) {
             UIView *&_transcriptTable(MSHookIvar<UIView *>(self, "_transcriptTable"));
             UIView *&_transcriptLayer(MSHookIvar<UIView *>(self, "_transcriptLayer"));
             UIView *table;
             UIView *&_transcriptTable(MSHookIvar<UIView *>(self, "_transcriptTable"));
             UIView *&_transcriptLayer(MSHookIvar<UIView *>(self, "_transcriptLayer"));
             UIView *table;