Rounded Rect

This commit is contained in:
CommanderRedYT
2022-06-13 18:00:07 +02:00
parent 35bf2907b3
commit b372f356ac

View File

@ -105,10 +105,11 @@ void MenuDisplay::redraw()
int newHighlightedIndex{-1}; int newHighlightedIndex{-1};
const auto drawItemRect = [](const auto &label, const auto color){ const auto drawItemRect = [](const auto &label, const auto color){
tft.drawRect(5, tft.drawRoundRect(5,
label.y()-1, label.y()-1,
tft.width() - 10, tft.width() - 10,
lineHeight+1, lineHeight+1,
5,
color); color);
}; };