net await now doas not display

This commit is contained in:
2026-01-29 11:22:59 +01:00
parent 365cae1551
commit 0edafd918c
+4 -4
View File
@@ -19,12 +19,12 @@ unsigned short ever_created_text_nodes = 0;
unsigned short getTextNodeY2(TextNode *node) unsigned short getTextNodeY2(TextNode *node)
{ {
return node.pos_y + node.characterSize.height - 1; return node->pos_y + node->characterSize.height - 1;
} }
unsigned short getTextNodeX2(TextNode *node) unsigned short getTextNodeX2(TextNode *node)
{ {
return node.pos_x + node.characterSize.width * node.character_count + node.character_count - 1; return node->pos_x + node->characterSize.width * node->character_count + node->character_count - 1;
} }
void addNewTextNode void addNewTextNode
@@ -45,11 +45,11 @@ void addNewTextNode
text_nodes[i].pos_x = pos_x; text_nodes[i].pos_x = pos_x;
text_nodes[i].pos_y = pos_y; text_nodes[i].pos_y = pos_y;
const unsigned short = getTextNodeX2(&(text_nodes)[i]); const unsigned short pos_x2 = getTextNodeX2(&(text_nodes)[i]);
if (pos_x2 > PANEL_MAX_X) if (pos_x2 > PANEL_MAX_X)
{ {
text_node[i].pos_x -= pos_x2 - PANEL_MAX_X; text_nodes[i].pos_x -= pos_x2 - PANEL_MAX_X;
} }
text_nodes[i].characterSize.height = is_small ? SMALL_TEXT_HEIGHT : MEDIUM_TEXT_HEIGHT; text_nodes[i].characterSize.height = is_small ? SMALL_TEXT_HEIGHT : MEDIUM_TEXT_HEIGHT;