]> git.saurik.com Git - winterboard.git/commitdiff
Fix calendar icon style markup state regression.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 13 Jan 2014 16:45:14 +0000 (08:45 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 13 Jan 2014 16:45:14 +0000 (08:45 -0800)
Library.mm

index f6cc67840999f2b6880594e5d5a2c60443226f47..80e18697cb329213010cdbcfe423ef5e5fb7104d 100644 (file)
@@ -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;