]> git.saurik.com Git - winterboard.git/commitdiff
For some reason iOS 7 Calendar keeps sizing "23".
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 11 Jan 2014 12:23:37 +0000 (04:23 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 11 Jan 2014 12:23:37 +0000 (04:23 -0800)
Library.mm

index aab45a28fb0052d38b4288a58d2288d8e9a205bb..9724f29aa364ddca951eca1330376df387ef4c35 100644 (file)
@@ -910,7 +910,11 @@ MSInstanceMessageHook1(UIImage *, SBCalendarApplicationIcon, generateIconImage,
         "text-shadow: rgba(0, 0, 0, 0.2) -1px -1px 2px;"
     , @"CalendarIconDayStyle"};
 
-    WBStringDrawingState sizeState = {&dayState, 7, nil, nil};
+    WBStringDrawingState wtfState = {&dayState, 1, nil, nil};
+
+    WBStringDrawingState sizeState = {
+        kCFCoreFoundationVersionNumber > 800 ? &wtfState : &dayState
+    , 7, nil, nil};
 
     WBStringDrawingState dateState = {&sizeState, 2, @""
     , @"CalendarIconDateStyle"};