include box background color in is_visible check

This commit is contained in:
jacob 2026-03-03 04:56:05 -06:00
parent 2308263256
commit 2bedfa389e

View File

@ -1544,7 +1544,8 @@ void UI_EndFrame(UI_Frame *frame, i32 vsync)
!G_IsRefNil(box->raw_texture) || !G_IsRefNil(box->raw_texture) ||
!SPR_IsSheetKeyNil(box->desc.sprite_sheet) || !SPR_IsSheetKeyNil(box->desc.sprite_sheet) ||
(AnyBit(box->desc.flags, UI_BoxFlag_DrawText) && raw_run.ready) || (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)) if (is_visible || AnyBit(frame->frame_flags, UI_FrameFlag_Debug))