mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +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 (parameters.opaque && parameters.backgroundColor) {
|
||||
[parameters.backgroundColor setFill];
|
||||
[[UIBezierPath bezierPathWithRect:{ .size = backingSize }] fill];
|
||||
UIRectFill({ .size = backingSize });
|
||||
}
|
||||
|
||||
[image drawInRect:imageDrawRect];
|
||||
|
||||
Reference in New Issue
Block a user