Fix highlighter going out of range on alarm page

This commit is contained in:
2026-08-17 22:26:02 -04:00
parent 2f03fa6659
commit 692077f4c4
+2 -2
View File
@@ -633,7 +633,7 @@ static void set_alarm_highlighter_frame() {
static void alarm_up_click_handler(void *recognizer, void *ctx) { static void alarm_up_click_handler(void *recognizer, void *ctx) {
if (s_highlight_pos == 0) { if (s_highlight_pos == 0) {
s_highlight_pos = 3; s_highlight_pos = 2;
} else { } else {
s_highlight_pos--; s_highlight_pos--;
} }
@@ -641,7 +641,7 @@ static void alarm_up_click_handler(void *recognizer, void *ctx) {
} }
static void alarm_down_click_handler(void *recognizer, void *ctx) { static void alarm_down_click_handler(void *recognizer, void *ctx) {
if (s_highlight_pos == 3) { if (s_highlight_pos == 2) {
s_highlight_pos = 0; s_highlight_pos = 0;
} else { } else {
s_highlight_pos++; s_highlight_pos++;