From 8542ae03a64bf3b05b1e94ddb023615d8c9bb4f4 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 11 Jan 2014 04:23:37 -0800 Subject: [PATCH] For some reason iOS 7 Calendar keeps sizing "23". --- Library.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library.mm b/Library.mm index aab45a2..9724f29 100644 --- a/Library.mm +++ b/Library.mm @@ -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"}; -- 2.45.2