mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-22 15:18:43 -06:00
disable covers_opaque
optimization for images
This commit is contained in:
parent
5af38d7a2a
commit
aee38bec45
|
@ -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