mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +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:
@@ -60,10 +60,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 + (FS_VISIBLE - 1) * FS_LINE_H, 6, FS_LINE_H);
|
||||
display.setColor(DisplayDriver::LIGHT);
|
||||
display.setCursor(display.width() - 6, FS_START_Y + (FS_VISIBLE - 1) * FS_LINE_H);
|
||||
display.print("v");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user