Optimised menu tiles (touch)

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-01-06 11:40:31 +01:00
parent b6ecb5f7f7
commit aee633eb77
2 changed files with 74 additions and 65 deletions
+10 -1
View File
@@ -2612,7 +2612,16 @@ void ShowOneButton(byte position, byte item, bool selected) {
break;
}
PSSprite.pushSprite((position > ITEM5 ? 163 : 8), (position * 2) - 22 - (position > ITEM5 ? 200 : 0));
if (selected) tft.drawRect((position > ITEM5 ? 163 : 8), (position * 2) - 22 - (position > ITEM5 ? 200 : 0), 150, 32, (CurrentTheme == 7 ? Black : ActiveColor));
if (selected) {
tft.drawRect((position > ITEM5 ? 163 : 8),
(position * 2) - 22 - (position > ITEM5 ? 200 : 0),
150, 32,
(CurrentTheme == 7 ? Black : ActiveColor));
tft.drawRect((position > ITEM5 ? 164 : 9),
(position * 2) - 21 - (position > ITEM5 ? 200 : 0),
148, 30,
(CurrentTheme == 7 ? Black : ActiveColor));
}
}
void BuildBWSelector() {