From 512183c39fb5ef06caa58a496e712a1383c7531a Mon Sep 17 00:00:00 2001 From: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com> Date: Thu, 15 May 2025 12:15:03 -0400 Subject: [PATCH] Line added to text message screen --- src/graphics/Screen.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 8b201da27..ea17801c6 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -1334,6 +1334,11 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16 display->setColor(WHITE); } else { display->drawString(x, 0, headerStr); + if (SCREEN_WIDTH > 128) { + display->drawLine(0, 20, SCREEN_WIDTH, 20); + } else { + display->drawLine(0, 14, SCREEN_WIDTH, 14); + } } // Center the emote below header + apply bounce @@ -1441,6 +1446,13 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16 int scrollOffset = static_cast(scrollY); int yOffset = -scrollOffset; + if (!isInverted) { + if (SCREEN_WIDTH > 128) { + display->drawLine(0, yOffset + 20, SCREEN_WIDTH, yOffset + 20); + } else { + display->drawLine(0, yOffset + 14, SCREEN_WIDTH, yOffset + 14); + } + } // === Render visible lines === for (size_t i = 0; i < lines.size(); ++i) {