mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
Line added to text message screen
This commit is contained in:
parent
18d11d28d4
commit
512183c39f
@ -1334,6 +1334,11 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
|
|||||||
display->setColor(WHITE);
|
display->setColor(WHITE);
|
||||||
} else {
|
} else {
|
||||||
display->drawString(x, 0, headerStr);
|
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
|
// Center the emote below header + apply bounce
|
||||||
@ -1441,6 +1446,13 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
|
|||||||
|
|
||||||
int scrollOffset = static_cast<int>(scrollY);
|
int scrollOffset = static_cast<int>(scrollY);
|
||||||
int yOffset = -scrollOffset;
|
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 ===
|
// === Render visible lines ===
|
||||||
for (size_t i = 0; i < lines.size(); ++i) {
|
for (size_t i = 0; i < lines.size(); ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user