summaryrefslogtreecommitdiffstats
path: root/graphics/src/primitive.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-05 04:10:00 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-05 05:40:44 +0200
commitf8cd1faa286daaf34cc532bf6d34b932b32eb35a (patch)
tree9db23ee837803df6954abc65eb5291b6af521083 /graphics/src/primitive.rs
parent6270c33ed9823c67f6b6e6dac8fd32521e4ac5a9 (diff)
downloadiced-f8cd1faa286daaf34cc532bf6d34b932b32eb35a.tar.gz
iced-f8cd1faa286daaf34cc532bf6d34b932b32eb35a.tar.bz2
iced-f8cd1faa286daaf34cc532bf6d34b932b32eb35a.zip
Group damage regions by area increase
Diffstat (limited to 'graphics/src/primitive.rs')
-rw-r--r--graphics/src/primitive.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/src/primitive.rs b/graphics/src/primitive.rs
index f079ff6f..01546dcb 100644
--- a/graphics/src/primitive.rs
+++ b/graphics/src/primitive.rs
@@ -178,8 +178,8 @@ impl Primitive {
}
Self::Quad { bounds, .. }
| Self::Image { bounds, .. }
- | Self::Svg { bounds, .. }
- | Self::Clip { bounds, .. } => bounds.expand(1.0),
+ | Self::Svg { bounds, .. } => bounds.expand(1.0),
+ Self::Clip { bounds, .. } => *bounds,
Self::SolidMesh { size, .. } | Self::GradientMesh { size, .. } => {
Rectangle::with_size(*size)
}