some vibecode fixed something

This commit is contained in:
2026-01-29 11:37:29 +01:00
parent 0edafd918c
commit 01992ca864
3 changed files with 61 additions and 17 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ unsigned short getTextNodeY2(TextNode *node)
unsigned short getTextNodeX2(TextNode *node)
{
return node->pos_x + node->characterSize.width * node->character_count + node->character_count - 1;
if (node->character_count == 0) return node->pos_x;
return node->pos_x + (node->characterSize.width * node->character_count) + (node->character_count - 1) - 1;
}
void addNewTextNode