src/text.c

changeset 193
ddf690c0b36b
parent 189
2c063b225183
child 194
7985c3b64460
--- a/src/text.c	Tue Jul 08 19:55:55 2025 +0200
+++ b/src/text.c	Wed Jul 09 22:30:52 2025 +0200
@@ -126,13 +126,11 @@
     return node;
 }
 
-// TODO: maybe we should prefer a clean signature and molest the caller with the cast
 void asc_text_printf(
-        AscSceneNode *node,
+        AscText *text_node,
         const char *format,
         ...
 ) {
-    AscText *text_node = (AscText*) node;
     va_list ap;
     va_start(ap, format);
     cx_vsprintf(
@@ -142,6 +140,6 @@
             ap
     );
     va_end(ap);
-    asc_node_update(node);
+    asc_node_update((AscSceneNode*)text_node);
 }
 

mercurial