From: Jay Freeman (saurik) Date: Sat, 31 Oct 2015 05:25:08 +0000 (-0700) Subject: Pretend to implement this correctly, just for fun. X-Git-Tag: v0.9.3919~1 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/9ed5113df4e1eb3884366d33fad152e6ba5d35bd Pretend to implement this correctly, just for fun. --- diff --git a/Library.mm b/Library.mm index b097d03..4287c06 100644 --- a/Library.mm +++ b/Library.mm @@ -1037,6 +1037,7 @@ MSInstanceMessage3(CGRect, NSAttributedString, boundingRectWithSize,options,cont UIFont *font([attributes objectForKey:@"NSFont"]); UIColor *color([attributes objectForKey:@"NSColor"]); + MSOldCall(size, options, context); return (CGRect) {{0, 0}, [[self string] sizeWithStyle:[NSString stringWithFormat:@"%@;%@;%@;%@", [font markupDescription], WBColorMarkup(color), base, info] forWidth:size.width]}; } @@ -1121,7 +1122,7 @@ MSInstanceMessageHook1(UIImage *, SBIconBadgeFactory, checkoutBadgeImageForText, } MSInstanceMessageHook1(UIImage *, SBCalendarApplicationIcon, generateIconImage, int, type) { - WBStringDrawingState dayState = {NULL, unsigned(kCFCoreFoundationVersionNumber >= 1200 ? 1 : 2), @"" + WBStringDrawingState dayState = {NULL, unsigned(kCFCoreFoundationVersionNumber >= 1200 ? 3 : 2), @"" // XXX: this is only correct on an iPod dock "text-shadow: rgba(0, 0, 0, 0.2) -1px -1px 2px;" , @"CalendarIconDayStyle"}; @@ -1132,7 +1133,7 @@ MSInstanceMessageHook1(UIImage *, SBCalendarApplicationIcon, generateIconImage, else if (kCFCoreFoundationVersionNumber < 1200) skips = 16; else - skips = 9; + skips = 7; WBStringDrawingState skipState = {&dayState, skips, nil, nil};