diff options
Diffstat (limited to 'teensy')
| -rw-r--r-- | teensy/teensy_ui.c | 5 |
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; |
