Expand damage regions of Clip primitives a bit

This commit is contained in:
Héctor Ramón Jiménez 2023-04-27 15:25:59 +02:00
parent 200a29c069
commit 38f82ab35f
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 5 additions and 3 deletions

View file

@ -179,7 +179,7 @@ impl Primitive {
Self::Quad { bounds, .. }
| Self::Image { bounds, .. }
| Self::Svg { bounds, .. } => bounds.expand(1.0),
Self::Clip { bounds, .. } => *bounds,
Self::Clip { bounds, .. } => bounds.expand(1.0),
Self::SolidMesh { size, .. } | Self::GradientMesh { size, .. } => {
Rectangle::with_size(*size)
}