--- a/test/snake/snake.c Sun Jul 27 23:54:33 2025 +0200 +++ b/test/snake/snake.c Mon Jul 28 23:11:30 2025 +0200 @@ -271,14 +271,13 @@ // initialize globals init_globals(); - // create window + // create the window AscWindowSettings settings; asc_window_settings_init_defaults(&settings); - settings.title = "Snake"; - settings.dimensions = ASC_VEC2U(900, 600); - // TODO: resize window depending on ui scale factor asc_window_initialize(0, &settings); - asc_ui_scale_auto(); + asc_window_set_title(0, "Snake"); + float ui_scale = asc_ui_scale_auto(); + asc_window_set_size(0, ASC_VEC2U(700+ui_scale*200, 700)); // load textures init_textures();