From c4a38c0d883fb6e8ccbbae6fa436259870db6541 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 16 Apr 2012 14:47:41 +0000 Subject: [PATCH] Add slightly more useful drawing debug. --- Library.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library.mm b/Library.mm index 223b681..35c7002 100644 --- a/Library.mm +++ b/Library.mm @@ -1965,7 +1965,7 @@ static void NSString$drawAtPoint$withStyle$(NSString *self, SEL _cmd, CGPoint po WKSetCurrentGraphicsContext(UIGraphicsGetCurrentContext()); if (style == nil || [style length] == 0) style = @"font-family: Helvetica; font-size: 12px"; - //NSLog(@"XXX:draw(%@)", [style stringByReplacingOccurrencesOfString:@"\n" withString:@" "]); + //NSLog(@"XXX:drawP(%@)", [style stringByReplacingOccurrencesOfString:@"\n" withString:@" "]); return [[WBMarkup sharedMarkup] drawString:self atPoint:point withStyle:style]; } @@ -1973,6 +1973,7 @@ static void NSString$drawInRect$withStyle$(NSString *self, SEL _cmd, CGRect rect WKSetCurrentGraphicsContext(UIGraphicsGetCurrentContext()); if (style == nil || [style length] == 0) style = @"font-family: Helvetica; font-size: 12px"; + //NSLog(@"XXX:drawR(%@)", [style stringByReplacingOccurrencesOfString:@"\n" withString:@" "]); return [[WBMarkup sharedMarkup] drawString:self inRect:rect withStyle:style]; } -- 2.45.2