]> git.saurik.com Git - winterboard.git/blobdiff - Library.mm
Use backwards-compatible deprecated garbage.
[winterboard.git] / 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;
 }