From: Jay Freeman (saurik) Date: Tue, 18 Oct 2011 08:31:22 +0000 (+0000) Subject: Use backwards-compatible deprecated garbage. X-Git-Tag: v0.9.3901~8 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/57be87b36f98cd20ed8987c51e4f69914b188cc1 Use backwards-compatible deprecated garbage. --- diff --git a/Library.mm b/Library.mm index 3a983c8..fd5a6d5 100644 --- a/Library.mm +++ b/Library.mm @@ -649,8 +649,7 @@ MSInstanceMessageHook4(CGSize, NSString, drawAtPoint,forWidth,withFont,lineBreak stringDrawingState_ = stringDrawingState_->next_; - WKSetCurrentGraphicsContext(UIGraphicsGetCurrentContext()); - [[WBMarkup sharedMarkup] drawString:self atPoint:point withStyle:style]; + [self drawAtPoint:point withStyle:style]; return CGSizeZero; } @@ -669,8 +668,7 @@ MSInstanceMessageHook2(CGSize, NSString, drawAtPoint,withFont, CGPoint, point, U stringDrawingState_ = stringDrawingState_->next_; - WKSetCurrentGraphicsContext(UIGraphicsGetCurrentContext()); - [[WBMarkup sharedMarkup] drawString:self atPoint:point withStyle:style]; + [self drawAtPoint:point withStyle:style]; return CGSizeZero; }