Fix render bug when overflowing menu
This commit is contained in:
1 parent
58d28e673e
commit
c0f5cc88fe
1 file changed
+2
-2
+2
-2
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user