minor changes, prepping for next tasks

This commit is contained in:
2024-05-11 01:30:54 -04:00
parent e40e3ddf85
commit 6a4f7ac6de
10 changed files with 37 additions and 24 deletions

View File

@ -23,6 +23,9 @@ ui_compute_layout :: proc( ui : ^UI_State )
current := root.first
for ; current != nil;
{
// if current.computed.fresh do return
// TODO(Ed): Lift this to ui_box_compute_layout
// profile("Layout Box")
style := current.style
@ -174,6 +177,7 @@ ui_compute_layout :: proc( ui : ^UI_State )
computed.text_size = text_size
computed.text_pos = { text_pos.x, text_pos.y }
}
computed.fresh = true
current = ui_box_tranverse_next( current )
}