81 } |
81 } |
82 |
82 |
83 static void scale_backdrop(AscBehavior *behavior) { |
83 static void scale_backdrop(AscBehavior *behavior) { |
84 // scale the backdrop to the size of the window |
84 // scale the backdrop to the size of the window |
85 if (asc_active_window->resized) { |
85 if (asc_active_window->resized) { |
86 AscSceneNode *node = behavior->node; |
86 asc_ptr_cast(AscSprite, sprite, behavior->node); |
87 asc_vec2u window_size = asc_active_window->dimensions; |
87 asc_vec2u window_size = asc_active_window->dimensions; |
88 asc_sprite_set_size(node, window_size.width, window_size.height); |
88 asc_sprite_set_size(sprite, window_size); |
89 } |
89 } |
90 } |
90 } |
91 |
91 |
92 static void create_backdrop(void) { |
92 static void create_backdrop(void) { |
93 AscSceneNode *node = asc_sprite( |
93 AscSceneNode *node = asc_sprite( |