vibecoded page and function change in ino

This commit is contained in:
2026-01-28 21:26:26 +01:00
parent a57485360a
commit 62be6be733
2 changed files with 495 additions and 128 deletions
+2 -6
View File
@@ -71,7 +71,7 @@ void drawTextNodes(bool reset_cursor = true)
}
}
void scrollAllScrollableTexts()
void scrollAllScrollableTexts(split_scroll_mode = false)
{
for (unsigned char i = 0; i < MAX_TEXT_NODES_COUNT; i++)
{
@@ -81,10 +81,8 @@ void scrollAllScrollableTexts()
short y1 = text_nodes[i].pos_y;
short x2 = text_nodes[i].pos_x + text_nodes[i].characterSize.width * text_nodes[i].character_count + text_nodes[i].character_count - 1;
short y2 = text_nodes[i].pos_y + text_nodes[i].characterSize.height - 1;
// If the text is scrolling on the upper part of the screen, scroll it to the left.
if (text_nodes[i].pos_y < 7)
if (split_scroll_mode || text_nodes[i].pos_y < 7)
{
// If the text is completely out of the screen, mark it as deleted.
if (x2 < 0)
{
text_nodes[i].is_deleted = true;
@@ -93,10 +91,8 @@ void scrollAllScrollableTexts()
shiftGivenRectangleLeft(x1, y1, x2, y2, text_nodes[i].scroll_slowness);
text_nodes[i].pos_x -= text_nodes[i].scroll_slowness;
}
// If the text is scrolling on the lower part of the screen, scroll it to the right.
else
{
// If the text is completely out of the screen, mark it as deleted.
if (x1 > PANEL_MAX_X)
{
text_nodes[i].is_deleted = true;