mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-27 10:32:37 +00:00
Address comments
This commit is contained in:
parent
d6c107a896
commit
b1d03f1d58
@ -131,9 +131,9 @@ static void __ASDisplayLayerDecrementConcurrentDisplayCount(BOOL displayIsAsync,
|
|||||||
CGContextTranslateCTM(context, frame.origin.x, frame.origin.y);
|
CGContextTranslateCTM(context, frame.origin.x, frame.origin.y);
|
||||||
|
|
||||||
//support cornerRadius
|
//support cornerRadius
|
||||||
if (clipsToBounds) {
|
if (rasterizingFromAscendent && clipsToBounds) {
|
||||||
if (cornerRadius) {
|
if (cornerRadius) {
|
||||||
[[UIBezierPath bezierPathWithRoundedRect:bounds cornerRadius:self.cornerRadius] addClip];
|
[[UIBezierPath bezierPathWithRoundedRect:bounds cornerRadius:cornerRadius] addClip];
|
||||||
} else {
|
} else {
|
||||||
[[UIBezierPath bezierPathWithRect:bounds] addClip];
|
[[UIBezierPath bezierPathWithRect:bounds] addClip];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user