From 57be87b36f98cd20ed8987c51e4f69914b188cc1 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 18 Oct 2011 08:31:22 +0000 Subject: [PATCH] Use backwards-compatible deprecated garbage. --- Library.mm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.50.0