From bc40d4c8cc213bba9b97134dc65d3eee538d2f68 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 20 Feb 2024 20:31:12 +0100 Subject: [PATCH] fix alpha check --- hui/src/element/builtin/container.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hui/src/element/builtin/container.rs b/hui/src/element/builtin/container.rs index 7469351..5183063 100644 --- a/hui/src/element/builtin/container.rs +++ b/hui/src/element/builtin/container.rs @@ -128,7 +128,7 @@ impl UiElement for Container { let mut position = ctx.layout.position; //background - if self.background.z > 0. { + if self.background.w > 0. { ctx.draw.add(UiDrawCommand::Rectangle { position, size: ctx.measure.size,