From f8ee8d0e70ba19bec0fea10109ab557637adf2ec Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Wed, 17 Apr 2024 16:28:57 +0200 Subject: [PATCH] for rgb stuff, always return true instead of delegating --- hui/src/frame/impls.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hui/src/frame/impls.rs b/hui/src/frame/impls.rs index c3152db..7a0c41a 100644 --- a/hui/src/frame/impls.rs +++ b/hui/src/frame/impls.rs @@ -87,7 +87,7 @@ impl Frame for Corners { FillColor::from(*self).draw(draw, rect) } fn covers_opaque(&self) -> bool { - FillColor::from(*self).is_opaque() + true } } @@ -96,7 +96,7 @@ impl Frame for (Vec3, Vec3, Vec3, Vec3) { FillColor::from(*self).draw(draw, rect) } fn covers_opaque(&self) -> bool { - FillColor::from(*self).is_opaque() + true } } @@ -105,7 +105,7 @@ impl Frame for ((f32, f32, f32), (f32, f32, f32), (f32, f32, f32), (f32, f32, f3 FillColor::from(*self).draw(draw, rect) } fn covers_opaque(&self) -> bool { - FillColor::from(*self).is_opaque() + true } } @@ -114,7 +114,7 @@ impl Frame for [[f32; 3]; 4] { FillColor::from(*self).draw(draw, rect) } fn covers_opaque(&self) -> bool { - FillColor::from(*self).is_opaque() + true } } @@ -154,7 +154,7 @@ impl Frame for Vec3 { FillColor::from(*self).draw(draw, rect) } fn covers_opaque(&self) -> bool { - FillColor::from(*self).is_opaque() + true } } @@ -163,7 +163,7 @@ impl Frame for (f32, f32, f32) { FillColor::from(*self).draw(draw, rect) } fn covers_opaque(&self) -> bool { - FillColor::from(*self).is_opaque() + true } } @@ -172,6 +172,6 @@ impl Frame for [f32; 3] { FillColor::from(*self).draw(draw, rect) } fn covers_opaque(&self) -> bool { - FillColor::from(*self).is_opaque() + true } }