Merge pull request #453 from facebook/outlineBorderWidth

Set line width on path instead of context.
This commit is contained in:
appleguy 2015-05-17 17:03:41 -10:00
commit 38ecededaa

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];
} }