diff -r 24b0f47f619c -r 4df350dac84f demo/snake/snake.c --- a/demo/snake/snake.c Sun Jan 25 13:18:26 2026 +0100 +++ b/demo/snake/snake.c Sun Jan 25 13:49:49 2026 +0100 @@ -137,7 +137,7 @@ // scale the backdrop to the size of the window if (!asc_active_window->resized) return; asc_ptr_cast(AscSprite, sprite, behavior->node); - asc_vec2u window_size = asc_active_window->dimensions; + asc_vec2u window_size = asc_active_window->rect.size; asc_sprite_set_size(sprite, window_size); } @@ -178,7 +178,7 @@ AscSceneNode *node = behavior->node; if (asc_test_flag(node->flags, ASC_SCENE_NODE_GRAPHICS_UPDATED) || asc_active_window->resized) { asc_scene_node_set_position2f(node, ASC_VEC2F(10, - asc_active_window->dimensions.y - ((AscText*)node)->dimension.height - 10 + asc_active_window->rect.size.height - ((AscText*)node)->dimension.height - 10 )); } } @@ -618,7 +618,7 @@ if (asc_has_error()) { SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Fatal Error", asc_get_error(), - asc_active_window->window); + asc_active_window->sdl); asc_clear_error(); asc_context_quit(); }