aboutsummaryrefslogtreecommitdiff
path: root/dc/dc.c
diff options
context:
space:
mode:
Diffstat (limited to 'dc/dc.c')
-rw-r--r--dc/dc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dc/dc.c b/dc/dc.c
index 1ecc7d9..fb640bb 100644
--- a/dc/dc.c
+++ b/dc/dc.c
@@ -119,8 +119,10 @@ void tick(void)
y += 8;
if (tyui_begin_window("Test Window", ty_recti(5, 5, 100, 100), &winid)) {
- for (int i = 0; i < 20; i++)
+ for (int i = 0; i < 3; i++)
tyui_text("example text");
+ if (tyui_button("press me"))
+ toggled = !toggled;
tyui_end_window();
}