Select bar fills the screen

This commit is contained in:
Christian Colglazier 2020-07-27 14:57:11 -04:00
parent f060bed10f
commit 97dd9d9e3f

View File

@ -74,6 +74,7 @@ void CreateMenuItem(std::string text, int position, bool highlighted) {
text.insert(text.end(), MAX_CHAR_LENGTH-text.size(), ' ');
patch.display.SetCursor(MENU_X[position-1], MENU_Y[position-1]);
if (highlighted) {
DrawSolidRect(0, MENU_Y[2], SSD1309_WIDTH, MENU_Y[2]+17, true);
patch.display.WriteString(cstr, Font_11x18, !highlighted);
} else {
patch.display.WriteString(cstr, Font_7x10, !highlighted);