mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-25 09:32:46 +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);
|
||||
|
||||
//support cornerRadius
|
||||
if (clipsToBounds) {
|
||||
if (rasterizingFromAscendent && clipsToBounds) {
|
||||
if (cornerRadius) {
|
||||
[[UIBezierPath bezierPathWithRoundedRect:bounds cornerRadius:self.cornerRadius] addClip];
|
||||
[[UIBezierPath bezierPathWithRoundedRect:bounds cornerRadius:cornerRadius] addClip];
|
||||
} else {
|
||||
[[UIBezierPath bezierPathWithRect:bounds] addClip];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user