aboutsummaryrefslogtreecommitdiff
path: root/dc/dc.c
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-17 12:47:10 -0400
committeriamcheeseman <[email protected]>2026-05-17 12:47:10 -0400
commit9642787fac5b3586f30bc07e4430784a658ba38f (patch)
treedf77363fae9589c07368d39703af0ae2abfd370f /dc/dc.c
parent6175e022e05d7224d57de2871246316a30dbf52e (diff)
add simple ui layouts
Diffstat (limited to 'dc/dc.c')
-rw-r--r--dc/dc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dc/dc.c b/dc/dc.c
index 66fbf1c..74c0ea3 100644
--- a/dc/dc.c
+++ b/dc/dc.c
@@ -65,8 +65,10 @@ void tick(void)
double frame_time = ty_get_time() - last_frame;
last_frame = ty_get_time();
+ tyui_layout((float[]){0.25, 0});
tyui_text("%.2g ms", frame_time * 1000);
tyui_text("%.2d fps", (int)(1.0 / frame_time));
+ tyui_layout(NULL);
tyui_text("%d", (int)ty_get_time());
tyui_text("abcdefghijklmnopqrstuvwxyz");
tyui_text("ABCDEFGHIJKLMNOPQRSTUVWXYZ");