From c4cd38bb6e04c03fce6bb2e9a8f3d1d7d3cb6fcc Mon Sep 17 00:00:00 2001 From: Scott Goodson Date: Sun, 17 May 2015 17:01:59 -1000 Subject: [PATCH] Set line width on path instead of context. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m not confident why the original implementation doesn’t work, but this version is stylistically cleaner regardless. Resolves task #450. --- AsyncDisplayKit/ASImageNode.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsyncDisplayKit/ASImageNode.mm b/AsyncDisplayKit/ASImageNode.mm index 76bd5b6cb4..2d61599626 100644 --- a/AsyncDisplayKit/ASImageNode.mm +++ b/AsyncDisplayKit/ASImageNode.mm @@ -347,7 +347,7 @@ extern asimagenode_modification_block_t ASImageNodeRoundBorderModificationBlock( // Draw a border on top. if (borderWidth > 0.0) { [borderColor setStroke]; - CGContextSetLineWidth(UIGraphicsGetCurrentContext(), borderWidth); + [roundOutline setLineWidth:borderWidth]; [roundOutline stroke]; }