mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-27 23:38:12 +00:00
fix: clear arrow background in FullscreenMsgView to prevent text overlap
Text lines fill the full display width, causing the last chars to bleed into the scroll arrow area. Draw a DARK fillRect behind each arrow before rendering it, so the arrow appears on a clean black background without truncating the text width. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -63,10 +63,16 @@ struct FullscreenMsgView {
|
||||
display.print(lines[scroll + i]);
|
||||
}
|
||||
if (scroll > 0) {
|
||||
display.setColor(DisplayDriver::DARK);
|
||||
display.fillRect(display.width() - 6, FS_START_Y, 6, FS_LINE_H);
|
||||
display.setColor(DisplayDriver::LIGHT);
|
||||
display.setCursor(display.width() - 6, FS_START_Y);
|
||||
display.print("^");
|
||||
}
|
||||
if (scroll < max_scroll) {
|
||||
display.setColor(DisplayDriver::DARK);
|
||||
display.fillRect(display.width() - 6, FS_START_Y + (visible - 1) * lineH, 6, lineH);
|
||||
display.setColor(DisplayDriver::LIGHT);
|
||||
display.setCursor(display.width() - 6, FS_START_Y + (visible - 1) * lineH);
|
||||
display.print("v");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user