src/text.c

changeset 33
e7ddb52facd3
parent 32
86468a71dd73
child 36
e26b4ac1661c
equal deleted inserted replaced
32:86468a71dd73 33:e7ddb52facd3
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);

mercurial