From d1c3b33fd1157a3c16aed97c0a121e277661c9a0 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 19 Oct 2011 04:40:52 +0000 Subject: [PATCH] Support SMSBackground@2x. --- Library.mm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library.mm b/Library.mm index fd5a6d5..aae2063 100644 --- a/Library.mm +++ b/Library.mm @@ -1482,10 +1482,8 @@ MSInstanceMessageHook2(id, CKTranscriptTableView, initWithFrame,style, CGRect, f 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(self, "_transcriptTable")); UIView *&_transcriptLayer(MSHookIvar(self, "_transcriptLayer")); UIView *table; -- 2.45.2