From: Jay Freeman (saurik) Date: Wed, 19 Oct 2011 04:40:52 +0000 (+0000) Subject: Support SMSBackground@2x. X-Git-Tag: v0.9.3901~4 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/d1c3b33fd1157a3c16aed97c0a121e277661c9a0 Support SMSBackground@2x. --- 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;