mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-27 07:48:42 +00:00
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:
parent
f248dbddd1
commit
c4cd38bb6e
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user