add TODO for improving alignment of text nodes

Sun, 01 Feb 2026 13:58:07 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 01 Feb 2026 13:58:07 +0100
changeset 299
c0d3a1acc6ae
parent 298
fa91e2e06eee
child 300
22b232e3202a

add TODO for improving alignment of text nodes

demo/snake/snake.c file | annotate | diff | comparison | revisions
--- a/demo/snake/snake.c	Sun Feb 01 13:52:50 2026 +0100
+++ b/demo/snake/snake.c	Sun Feb 01 13:58:07 2026 +0100
@@ -190,6 +190,8 @@
     // TODO: this should be replaced with some sort of UI layout manager
     AscSceneNode *node = behavior->node;
     if (asc_test_flag(node->flags, ASC_SCENE_NODE_GRAPHICS_UPDATED) || asc_active_window->resized) {
+        // TODO: this is visually wrong for one frame
+        //       instead there should be alignment settings with which we can control if (0,0) is in top left or bottom left corner
         asc_scene_node_set_position2f(node, ASC_VEC2F(10,
                 asc_active_window->rect.size.height - ((AscText*)node)->dimension.height - 10
         ));

mercurial