src/text.c

changeset 259
1315ac4d1368
parent 256
60014484121c
--- a/src/text.c	Fri Aug 08 20:51:02 2025 +0200
+++ b/src/text.c	Fri Aug 08 20:51:14 2025 +0200
@@ -63,7 +63,7 @@
     TTF_Font *font = asc_font_load(text->font);
     if (font == NULL) {
         // cannot load font - hide the text node to avoid errors when trying to draw
-        asc_set_flag(node->flags, ASC_SCENE_NODE_HIDDEN);
+        asc_scene_node_hide(node);
         return;
     }
     static TTF_HorizontalAlignment alignments[] = {

mercurial