mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
ImageNode: fill background more efficiently
This commit is contained in:
@@ -231,7 +231,7 @@
|
|||||||
// if view is opaque, fill the context with background color
|
// if view is opaque, fill the context with background color
|
||||||
if (parameters.opaque && parameters.backgroundColor) {
|
if (parameters.opaque && parameters.backgroundColor) {
|
||||||
[parameters.backgroundColor setFill];
|
[parameters.backgroundColor setFill];
|
||||||
[[UIBezierPath bezierPathWithRect:{ .size = backingSize }] fill];
|
UIRectFill({ .size = backingSize });
|
||||||
}
|
}
|
||||||
|
|
||||||
[image drawInRect:imageDrawRect];
|
[image drawInRect:imageDrawRect];
|
||||||
|
|||||||
Reference in New Issue
Block a user