mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-25 08:28:42 -06:00
disable covers_opaque
optimization for images
This commit is contained in:
parent
fc4bc83ba9
commit
6ec12187ac
|
@ -16,8 +16,9 @@ impl Frame for ImageHandle {
|
||||||
rounded_corners: None,
|
rounded_corners: None,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn covers_opaque(&self) -> bool {
|
fn covers_opaque(&self) -> bool {
|
||||||
true
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +32,7 @@ impl Frame for FillColor {
|
||||||
rounded_corners: None,
|
rounded_corners: None,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn covers_opaque(&self) -> bool {
|
fn covers_opaque(&self) -> bool {
|
||||||
self.is_opaque()
|
self.is_opaque()
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,6 +139,7 @@ impl Frame for FrameRect {
|
||||||
self.bottom_right.x.relative >= 1. &&
|
self.bottom_right.x.relative >= 1. &&
|
||||||
self.bottom_right.y.absolute >= 0. &&
|
self.bottom_right.y.absolute >= 0. &&
|
||||||
self.bottom_right.y.relative >= 1. &&
|
self.bottom_right.y.relative >= 1. &&
|
||||||
self.color.is_opaque()
|
self.color.is_opaque() &&
|
||||||
|
self.image.is_none()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue