diff options
| author | iamcheeseman <[email protected]> | 2026-05-24 09:04:26 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-24 09:04:26 -0400 |
| commit | bcf1439eb8d936d3b43ac817519cd47e9624210e (patch) | |
| tree | 056cf005b5f304d1e58ce34e157d4e78d8ef0667 /dc/dc.c | |
| parent | fc3ad3fec91ba54414cc5cb126d61803611056f3 (diff) | |
completely redo lists
Diffstat (limited to 'dc/dc.c')
| -rw-r--r-- | dc/dc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -69,7 +69,7 @@ void tick(void) if (tyui_begin_window("Test Window", ty_recti(5, 5, 100, 120), &winid1)) { tyui_button("before"); - tyui_push_layout((float[]){-49, -1, 0}); + tyui_push_layout((float[]){0.5, -1, 0}); tyui_push_layout((float[]){-1, 0}); tyui_text_ex(TYUI_ALIGN_CENTER, "Buttons"); tyui_button("test1"); @@ -83,6 +83,8 @@ void tick(void) tyui_text_ex(TYUI_ALIGN_CENTER, "Stats"); tyui_text_ex(TYUI_ALIGN_RIGHT, "%.2g ms", frame_time * 1000); tyui_text_ex(TYUI_ALIGN_RIGHT, "%.2d fps", (int)(1.0 / frame_time)); + tyui_text_ex(TYUI_ALIGN_RIGHT, "%d alloc", ty_alloc_count()); + tyui_text_ex(TYUI_ALIGN_RIGHT, "%dM mem", ty_alloc_size() / 1000); tyui_pop_layout(); tyui_pop_layout(); |
