diff -r 674eb53c12f3 -r e26b4ac1661c src/text.c --- a/src/text.c Wed Mar 06 23:13:06 2024 +0100 +++ b/src/text.c Wed Mar 06 23:38:17 2024 +0100 @@ -99,7 +99,7 @@ SDL_FreeSurface(surface); } -AscText *asc_text(int x, int y, char const *text) { +AscSceneNode *asc_text(int x, int y, char const *text) { AscText *node = calloc(1, sizeof(AscText)); if (node == NULL) { asc_error("Out of memory."); @@ -118,9 +118,7 @@ node->text = strdup(text); } - asc_scene_add(&asc_context.active_window->ui, &node->base); - - return node; + return &node->base; } void asc_text_free(AscText *node) {