disable covers_opaque optimization for images

This commit is contained in:
griffi-gh 2024-03-24 22:01:36 +01:00
parent fc4bc83ba9
commit 6ec12187ac
2 changed files with 5 additions and 2 deletions

View file

@ -16,8 +16,9 @@ impl Frame for ImageHandle {
rounded_corners: None,
})
}
fn covers_opaque(&self) -> bool {
true
false
}
}
@ -31,6 +32,7 @@ impl Frame for FillColor {
rounded_corners: None,
})
}
fn covers_opaque(&self) -> bool {
self.is_opaque()
}

View file

@ -139,6 +139,7 @@ impl Frame for FrameRect {
self.bottom_right.x.relative >= 1. &&
self.bottom_right.y.absolute >= 0. &&
self.bottom_right.y.relative >= 1. &&
self.color.is_opaque()
self.color.is_opaque() &&
self.image.is_none()
}
}