Skip to content

Commit 2f3bc70

Browse files
committed
Fix aesthetics menu
1 parent 9286c85 commit 2f3bc70

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Force.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ void Force::start_up_menu() {
12681268
delay (250);
12691269
calibrate_active = true;
12701270
Calibrate();
1271-
tft.fillRect(0, (option * 8) + 19, 160, 9, ST7735_BLUE); // highlight active bar
1271+
tft.fillRect(0, ((option - 12) * 8) + 19, 160, 9, ST7735_BLUE); // highlight active bar
12721272
}
12731273
}
12741274

@@ -1279,7 +1279,7 @@ void Force::start_up_menu() {
12791279
if (! (buttons & TFTWING_BUTTON_RIGHT) or ! (buttons & TFTWING_BUTTON_SELECT)) {
12801280
start_timer = millis();
12811281
delay (250);
1282-
tft.fillRect(0, (option * 8) + 19, 160, 9, ST7735_BLUE); // highlight active bar
1282+
tft.fillRect(0, ((option - 12) * 8) + 19, 160, 9, ST7735_BLUE); // highlight active bar
12831283
reset_settings();
12841284
}
12851285
}
@@ -1289,7 +1289,7 @@ void Force::start_up_menu() {
12891289
start_timer = millis();
12901290
Click();
12911291
if ((option <= 17) and (option > 11)){
1292-
tft.fillRect(0, ((option - 13) * 8) + 19, 160, 9, ST7735_BLACK); // erase current bar
1292+
tft.fillRect(0, ((option - 11) * 8) + 19, 160, 9, ST7735_BLACK); // erase current bar
12931293
tft.fillRect(0, ((option - 12) * 8) + 19, 160, 9, ST7735_BLUE); // highlight active bar
12941294
}
12951295
delay (150);

0 commit comments

Comments
 (0)