Fix battery bar fill orientation (right to left)

This commit is contained in:
MCelliotG
2023-08-19 01:41:46 +03:00
committed by GitHub
parent 14c8767f5f
commit 7f74892b8f
+1 -1
View File
@@ -2820,7 +2820,7 @@ void ShowBattery() {
tft.fillRect(313, 13, 4, 6, ActiveColor);
}
tft.fillRect(279, 8, 33, 16, BackgroundColor);
if (batteryoptions != BATTERY_VALUE && batteryoptions != BATTERY_PERCENT) tft.fillRect(279, 24 - (battery * 4), 33, battery * 4, BarInsignificantColor);
if (batteryoptions != BATTERY_VALUE && batteryoptions != BATTERY_PERCENT) tft.fillRect(279, 8, 17 + (battery * 4), 16, BarInsignificantColor);
} else {
tft.drawRect(277, 6, 37, 20, GreyoutColor);
tft.fillRect(313, 13, 4, 6, GreyoutColor);