From: Jay Freeman (saurik) Date: Mon, 13 Jan 2014 16:45:14 +0000 (-0800) Subject: Fix calendar icon style markup state regression. X-Git-Tag: v0.9.3915~5 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/0bd83a3c6ad8ea66c5b40143dc817e92943a6dcd Fix calendar icon style markup state regression. --- diff --git a/Library.mm b/Library.mm index f6cc678..80e1869 100644 --- a/Library.mm +++ b/Library.mm @@ -997,13 +997,11 @@ MSInstanceMessageHook1(UIImage *, SBCalendarApplicationIcon, generateIconImage, "text-shadow: rgba(0, 0, 0, 0.2) -1px -1px 2px;" , @"CalendarIconDayStyle"}; - WBStringDrawingState wtfState = {&dayState, 1, nil, nil}; + WBStringDrawingState skipState = {&dayState, + unsigned(kCFCoreFoundationVersionNumber > 800 ? 16 : 7) + , nil, nil}; - WBStringDrawingState sizeState = { - kCFCoreFoundationVersionNumber > 800 ? &wtfState : &dayState - , 7, nil, nil}; - - WBStringDrawingState dateState = {&sizeState, 2, @"" + WBStringDrawingState dateState = {&skipState, 2, @"" , @"CalendarIconDateStyle"}; stringDrawingState_ = &dateState;