🎨 tree_path.h
This commit is contained in:
parent
ad910ed4f5
commit
89c01a7b22
1 changed files with 5 additions and 4 deletions
|
|
@ -89,10 +89,11 @@ static void tree_path_ascend(TreePath *path, size_t count) {
|
|||
|
||||
static void tree_path_init(TreePath *path, TSTree *tree) {
|
||||
array_clear(path);
|
||||
array_push(path,
|
||||
((TreePathEntry){
|
||||
.tree = tree, .position = { 0, 0, { 0, 0 } }, .child_index = 0,
|
||||
}));
|
||||
array_push(path, ((TreePathEntry){
|
||||
.tree = tree,
|
||||
.position = { 0, 0, { 0, 0 } },
|
||||
.child_index = 0,
|
||||
}));
|
||||
if (!tree->visible)
|
||||
tree_path_descend(path, (TSPoint){ 0, 0 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue