]> git.saurik.com Git - winterboard.git/commitdiff
Use backwards-compatible deprecated garbage.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 18 Oct 2011 08:31:22 +0000 (08:31 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 18 Oct 2011 08:31:22 +0000 (08:31 +0000)
Library.mm

index 3a983c8bcf0758217402b22238cd27b3e937fcaf..fd5a6d5b17e3bab0c2b67bd9d28779c2ab9148e8 100644 (file)
@@ -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;
 }