84 static void scale_backdrop(AscBehavior *behavior) { |
84 static void scale_backdrop(AscBehavior *behavior) { |
85 // scale the backdrop to the size of the window |
85 // scale the backdrop to the size of the window |
86 if (asc_active_window->resized) { |
86 if (asc_active_window->resized) { |
87 AscSceneNode *node = behavior->node; |
87 AscSceneNode *node = behavior->node; |
88 asc_vec2u window_size = asc_active_window->dimensions; |
88 asc_vec2u window_size = asc_active_window->dimensions; |
89 // TODO: replace scale with asc_sprite_set_size() |
89 asc_sprite_set_size(node, window_size.width, window_size.height); |
90 asc_set_scale(node, (float)window_size.width, (float)window_size.height, 1); |
|
91 } |
90 } |
92 } |
91 } |
93 |
92 |
94 static void create_backdrop(void) { |
93 static void create_backdrop(void) { |
95 AscSceneNode *node = asc_sprite( |
94 AscSceneNode *node = asc_sprite( |