Fix render bug when overflowing menu

This commit is contained in:
2022-10-19 16:32:45 +02:00
parent 58d28e673e
commit c0f5cc88fe

View File

@ -160,14 +160,14 @@ void MenuDisplay::redraw()
{
drawItemRect(*labelsIter, TFT_GREY);
*iconsIter = nullptr;
labelsIter->clear();
labelsIter->start();
}
}
else if (relativeIndex == m_highlightedIndex)
{
drawItemRect(*labelsIter, TFT_BLACK);
*iconsIter = nullptr;
labelsIter->clear();
labelsIter->start();
}
tft.setTextFont(item.font());