src/text.c

changeset 102
0d94fd280c6e
parent 95
622887f7e954
--- a/src/text.c	Tue Apr 29 21:51:29 2025 +0200
+++ b/src/text.c	Thu May 01 15:26:01 2025 +0200
@@ -89,6 +89,8 @@
     node->flags = args.alignment;
     node->position.x = (float) args.x;
     node->position.y = (float) args.y;
+    node->position.z = ASC_SCENE_2D_DEPTH_OFFSET;
+    node->scale.depth = 1.f;
     text->max_width = args.max_width;
     text->font = asc_active_font;
     text->color = asc_context.ink;

mercurial