Set line width on path instead of context.

I’m not confident why the original implementation doesn’t work, but
this version is stylistically cleaner regardless.  Resolves task #450.
This commit is contained in:
Scott Goodson 2015-05-17 17:01:59 -10:00
parent f248dbddd1
commit c4cd38bb6e

View File

@ -347,7 +347,7 @@ extern asimagenode_modification_block_t ASImageNodeRoundBorderModificationBlock(
// Draw a border on top. // Draw a border on top.
if (borderWidth > 0.0) { if (borderWidth > 0.0) {
[borderColor setStroke]; [borderColor setStroke];
CGContextSetLineWidth(UIGraphicsGetCurrentContext(), borderWidth); [roundOutline setLineWidth:borderWidth];
[roundOutline stroke]; [roundOutline stroke];
} }