From 0bd83a3c6ad8ea66c5b40143dc817e92943a6dcd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 13 Jan 2014 08:45:14 -0800 Subject: [PATCH] Fix calendar icon style markup state regression. --- Library.mm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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; -- 2.45.2