aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_ui.c
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-26 15:35:13 -0400
committeriamcheeseman <[email protected]>2026-05-26 15:35:13 -0400
commited7dfaad432b6e3fe838b9a2b5fe225abea5365d (patch)
tree0af2e01a688d963ec6d2977802dbeb9156335845 /teensy/teensy_ui.c
parent8122098e3854bf68ca63cc25e082ba51a27b8615 (diff)
tbh i did a lot
Diffstat (limited to 'teensy/teensy_ui.c')
-rw-r--r--teensy/teensy_ui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/teensy/teensy_ui.c b/teensy/teensy_ui.c
index 45bdda3..3e10614 100644
--- a/teensy/teensy_ui.c
+++ b/teensy/teensy_ui.c
@@ -252,7 +252,10 @@ void tyui_init(const ty_Font *font)
root_flags |= TYUI_WIN_NOMOVE;
root_flags |= TYUI_WIN_INVISIBLE;
- tyui.root = create_window(ty_recti(0, 0, 256, 256), root_flags);
+ tyui.root = create_window(
+ ty_recti(0, 0, ctx.hints.scr_width, ctx.hints.scr_height),
+ root_flags
+ );
tyui.style = default_style;
tyui.font = font;