diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-06-05 10:50:24 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-06-05 10:50:24 -0400 |
| commit | 55c518b2922a2d8a41212a952a68c17c7c9a3f8b (patch) | |
| tree | 31cc135bc18bf11893d5ca3bca47c9ee27bf141f /src/static-ui.cpp | |
| parent | b0b1159780311c7c8ca9a9d41d11794e91e8895c (diff) | |
pk.h: update to 0.6.0 + handle breaking changes
Diffstat (limited to 'src/static-ui.cpp')
| -rw-r--r-- | src/static-ui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/static-ui.cpp b/src/static-ui.cpp index 1eca4e4..34887d9 100644 --- a/src/static-ui.cpp +++ b/src/static-ui.cpp @@ -35,7 +35,7 @@ struct pke_ui_master { } pke_ui_master; void pke_ui_init() { - pke_ui_master.bkt = pk_bucket_create("pke ui", PK_DEFAULT_BUCKET_SIZE, false); + pke_ui_master.bkt = pk_mem_bucket_create("pke ui", PK_MEM_DEFAULT_BUCKET_SIZE, PK_MEMBUCKET_FLAG_NONE); pke_ui_master.root_boxes = pk_new<pke_ui_box*>(1, pke_ui_master.bkt); pke_ui_master.h_root_boxes = 0; pke_ui_master.r_root_boxes = 1; @@ -399,8 +399,8 @@ void pke_ui_teardown() { for (pke_ui_box_count_T i = 0; i < pke_ui_master.h_root_boxes; ++i) { pke_ui_teardown_box_recursive(pke_ui_master.root_boxes[i]); } - pk_delete<pke_ui_box *>(pke_ui_master.root_boxes, pke_ui_master.r_root_boxes); - pk_bucket_destroy(pke_ui_master.bkt); + pk_delete<pke_ui_box *>(pke_ui_master.root_boxes, pke_ui_master.r_root_boxes, pke_ui_master.bkt); + pk_mem_bucket_destroy(pke_ui_master.bkt); pke_ui_master.bkt = nullptr; pke_ui_master.root_boxes = nullptr; pke_ui_master.h_root_boxes = 0; |
