From 2bedfa389eb5b272dcb9578ec412f3f67666d51d Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 3 Mar 2026 04:56:05 -0600 Subject: [PATCH] include box background color in is_visible check --- src/ui/ui_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/ui_core.c b/src/ui/ui_core.c index bf0888e2..b622f4a5 100644 --- a/src/ui/ui_core.c +++ b/src/ui/ui_core.c @@ -1544,7 +1544,8 @@ void UI_EndFrame(UI_Frame *frame, i32 vsync) !G_IsRefNil(box->raw_texture) || !SPR_IsSheetKeyNil(box->desc.sprite_sheet) || (AnyBit(box->desc.flags, UI_BoxFlag_DrawText) && raw_run.ready) || - box->desc.tint.a * box->desc.background_color.a >= 0.0025 + box->desc.tint.a * box->desc.background_color.a >= 0.0025 || + box->desc.tint.a * box->desc.border_color.a >= 0.0025 ); if (is_visible || AnyBit(frame->frame_flags, UI_FrameFlag_Debug))