aboutsummaryrefslogtreecommitdiff
path: root/dc
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-24 09:04:26 -0400
committeriamcheeseman <[email protected]>2026-05-24 09:04:26 -0400
commitbcf1439eb8d936d3b43ac817519cd47e9624210e (patch)
tree056cf005b5f304d1e58ce34e157d4e78d8ef0667 /dc
parentfc3ad3fec91ba54414cc5cb126d61803611056f3 (diff)
completely redo lists
Diffstat (limited to 'dc')
-rw-r--r--dc/dc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dc/dc.c b/dc/dc.c
index b0da900..bee27c7 100644
--- a/dc/dc.c
+++ b/dc/dc.c
@@ -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();