Testing unveiled some issues - fixed with these changes

This commit is contained in:
Jason P
2026-01-14 10:48:12 -06:00
parent ac23271c86
commit aad8b6adce
2 changed files with 3 additions and 4 deletions

View File

@@ -176,6 +176,7 @@ int calculateMaxScroll(int totalEntries, int visibleRows)
void drawColumnSeparator(OLEDDisplay *display, int16_t x, int16_t yStart, int16_t yEnd)
{
x = (currentResolution == ScreenResolution::High) ? x - 2 : (currentResolution == ScreenResolution::Low) ? x - 1 : x;
for (int y = yStart; y <= yEnd; y += 2) {
display->setPixel(x, y);
}
@@ -599,11 +600,8 @@ void drawNodeListScreen(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t
// Draw column separator
if (currentResolution != ScreenResolution::UltraLow && shownCount > 0) {
const int firstNodeY = y + 3;
const int tempColumnWidth = (currentResolution == ScreenResolution::High) ? columnWidth - 2
: (currentResolution == ScreenResolution::Low) ? columnWidth - 1
: columnWidth;
for (int horizontal_offset = 1; horizontal_offset < totalColumns; horizontal_offset++) {
drawColumnSeparator(display, tempColumnWidth * horizontal_offset, firstNodeY, lastNodeY);
drawColumnSeparator(display, columnWidth * horizontal_offset, firstNodeY, lastNodeY);
}
}