mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-09 22:20:41 +00:00
Remove padding workaround from old CoreText days.
This is a vestige from Paper. Discussion: https://github.com/facebook/AsyncDisplayKit/issues/1013
This commit is contained in:
parent
640568aff8
commit
aee7b3b77a
@ -413,9 +413,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
|||||||
if (backgroundColor) {
|
if (backgroundColor) {
|
||||||
CGContextSetFillColorWithColor(context, backgroundColor);
|
CGContextSetFillColorWithColor(context, backgroundColor);
|
||||||
CGContextSetBlendMode(context, kCGBlendModeCopy);
|
CGContextSetBlendMode(context, kCGBlendModeCopy);
|
||||||
// outset the background fill to cover fractional errors when drawing at a
|
CGContextFillRect(context, CGContextGetClipBoundingBox(context));
|
||||||
// small contentsScale.
|
|
||||||
CGContextFillRect(context, CGRectInset(bounds, -2, -2));
|
|
||||||
CGContextSetBlendMode(context, kCGBlendModeNormal);
|
CGContextSetBlendMode(context, kCGBlendModeNormal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user