Add border radius support for image
This commit is contained in:
parent
c896cd8d31
commit
44e68aa4b6
15 changed files with 256 additions and 188 deletions
|
|
@ -311,8 +311,10 @@ impl Renderer {
|
|||
self.layers.merge();
|
||||
|
||||
for layer in self.layers.iter() {
|
||||
let clip_bounds = layer.bounds * scale_factor;
|
||||
|
||||
if physical_bounds
|
||||
.intersection(&(layer.bounds * scale_factor))
|
||||
.intersection(&clip_bounds)
|
||||
.and_then(Rectangle::snap)
|
||||
.is_none()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue