diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-06 17:16:43 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-06 17:16:43 -0400 |
| commit | 0b5f7059cc88d9ee18fa46eb7e6d9fb45ee65da8 (patch) | |
| tree | 8ddf762341b28c7e2cc0a17bf759e66057b5e457 /src | |
| parent | f76992e357ea791cf2eabcbb81b92041ce6d9f7a (diff) | |
pke: ui always use ui bkt
Diffstat (limited to 'src')
| -rw-r--r-- | src/static-ui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/static-ui.cpp b/src/static-ui.cpp index 1e0dffb..1179028 100644 --- a/src/static-ui.cpp +++ b/src/static-ui.cpp @@ -565,7 +565,7 @@ void pke_ui_teardown_box_recursive(pke_ui_box *box) { pke_ui_teardown_box_recursive(box->internal.children[i]); } if (box->internal.children != nullptr) { - pk_delete_arr<pke_ui_box *>(box->internal.children, box->internal.r_children); + pk_delete_arr<pke_ui_box *>(box->internal.children, box->internal.r_children, pke_ui_master.bkt); } pke_ui_master.should_update_buffer = true; } @@ -675,11 +675,11 @@ pke_ui_box *pke_ui_box_new_root(const PKE_UI_BOX_TYPE type, pk_uuid uuid) { if (pke_ui_master.h_root_boxes == pke_ui_master.r_root_boxes) { pke_ui_box_count_T prev_r_root_boxes = pke_ui_master.r_root_boxes; pke_ui_master.r_root_boxes *= 1.5; - pke_ui_box **boxes = pk_new_arr<pke_ui_box*>(pke_ui_master.r_root_boxes); + pke_ui_box **boxes = pk_new_arr<pke_ui_box*>(pke_ui_master.r_root_boxes, pke_ui_master.bkt); for (pke_ui_box_count_T i = 0; i < pke_ui_master.h_root_boxes; ++i) { boxes[i] = pke_ui_master.root_boxes[i]; } - if (pke_ui_master.root_boxes != nullptr) pk_delete_arr<pke_ui_box*>(pke_ui_master.root_boxes, prev_r_root_boxes); + if (pke_ui_master.root_boxes != nullptr) pk_delete_arr<pke_ui_box*>(pke_ui_master.root_boxes, prev_r_root_boxes, pke_ui_master.bkt); pke_ui_master.root_boxes = boxes; } pke_ui_box *box = pk_new<pke_ui_box>(pke_ui_master.bkt); @@ -708,12 +708,12 @@ pke_ui_box *pke_ui_box_new_child(pke_ui_box *parent, const PKE_UI_BOX_TYPE type, if (parent->internal.h_children == parent->internal.r_children) { pke_ui_box_count_T prev_r_children = parent->internal.r_children; parent->internal.r_children = PK_MAX(parent->internal.r_children * 1.5, 2); - pke_ui_box **boxes = pk_new_arr<pke_ui_box*>(parent->internal.r_children); + pke_ui_box **boxes = pk_new_arr<pke_ui_box*>(parent->internal.r_children, pke_ui_master.bkt); for (pke_ui_box_count_T i = 0; i < parent->internal.h_children; ++i) { boxes[i] = parent->internal.children[i]; } if (parent->internal.children != nullptr) { - pk_delete_arr<pke_ui_box*>(parent->internal.children, prev_r_children); + pk_delete_arr<pke_ui_box*>(parent->internal.children, prev_r_children, pke_ui_master.bkt); } parent->internal.children = boxes; } |
