another checkpoint in moving previously engine-controlled behavior to frontend, and getting engine completely off d_entities

This commit is contained in:
Ryan Fleury
2024-09-12 16:51:48 -07:00
parent 71cb03f3be
commit f13806b19f
4 changed files with 19 additions and 12 deletions
+3 -1
View File
@@ -810,6 +810,9 @@ ui_begin_build(OS_Handle window, UI_EventList *events, UI_IconInfo *icon_info, U
next = n->lru_next;
if(n->last_touched_build_index+1 < ui_state->build_index)
{
U64 slot_idx = n->key.u64[0]%ui_state->anim_slots_count;
UI_AnimSlot *slot = &ui_state->anim_slots[slot_idx];
DLLRemove_NPZ(&ui_nil_anim_node, slot->first, slot->last, n, slot_next, slot_prev);;
DLLRemove_NPZ(&ui_nil_anim_node, ui_state->lru_anim_node, ui_state->mru_anim_node, n, lru_next, lru_prev);
SLLStackPush_N(ui_state->free_anim_node, n, slot_next);
}
@@ -2942,7 +2945,6 @@ ui_signal_from_box(UI_Box *box)
}
}
ProfEnd();
return sig;
}