116 node->color = asc_context.ink; |
116 node->color = asc_context.ink; |
117 if (text != NULL) { |
117 if (text != NULL) { |
118 node->text = strdup(text); |
118 node->text = strdup(text); |
119 } |
119 } |
120 |
120 |
|
121 asc_scene_add(&asc_context.active_window->ui, &node->base); |
|
122 |
121 return node; |
123 return node; |
122 } |
124 } |
123 |
125 |
124 void asc_text_free(AscText *node) { |
126 void asc_text_free(AscText *node) { |
125 asc_dprintf("Release text node texture: %u", node->internal.tex_id); |
127 asc_dprintf("Release text node texture: %u", node->internal.tex_id); |