Update src/graphics/draw/NodeListRenderer.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jonathan Bennett 2025-06-25 18:06:52 -05:00 committed by GitHub
parent 667ff17fdb
commit 8fb1e0f874
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -418,7 +418,9 @@ void drawNodeListScreen(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t
int totalColumns = 2;
int startIndex = scrollIndex * visibleNodeRows * totalColumns;
startIndex++; // skip own node
if (scrollIndex == 0) {
startIndex++; // skip own node
}
int endIndex = std::min(startIndex + visibleNodeRows * totalColumns, totalEntries);
int yOffset = 0;