Fix render bug when overflowing menu
This commit is contained in:
@@ -160,14 +160,14 @@ void MenuDisplay::redraw()
|
|||||||
{
|
{
|
||||||
drawItemRect(*labelsIter, TFT_GREY);
|
drawItemRect(*labelsIter, TFT_GREY);
|
||||||
*iconsIter = nullptr;
|
*iconsIter = nullptr;
|
||||||
labelsIter->clear();
|
labelsIter->start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (relativeIndex == m_highlightedIndex)
|
else if (relativeIndex == m_highlightedIndex)
|
||||||
{
|
{
|
||||||
drawItemRect(*labelsIter, TFT_BLACK);
|
drawItemRect(*labelsIter, TFT_BLACK);
|
||||||
*iconsIter = nullptr;
|
*iconsIter = nullptr;
|
||||||
labelsIter->clear();
|
labelsIter->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
tft.setTextFont(item.font());
|
tft.setTextFont(item.font());
|
||||||
|
Reference in New Issue
Block a user