include box background color in is_visible check
This commit is contained in:
parent
2308263256
commit
2bedfa389e
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user