mirror of
https://git.wetfence.xyz/RandyTheSilly/Trigalarm.git
synced 2026-08-27 22:26:25 -04:00
Fix highlighter going out of range on alarm page
This commit is contained in:
+2
-2
@@ -633,7 +633,7 @@ static void set_alarm_highlighter_frame() {
|
||||
|
||||
static void alarm_up_click_handler(void *recognizer, void *ctx) {
|
||||
if (s_highlight_pos == 0) {
|
||||
s_highlight_pos = 3;
|
||||
s_highlight_pos = 2;
|
||||
} else {
|
||||
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) {
|
||||
if (s_highlight_pos == 3) {
|
||||
if (s_highlight_pos == 2) {
|
||||
s_highlight_pos = 0;
|
||||
} else {
|
||||
s_highlight_pos++;
|
||||
|
||||
Reference in New Issue
Block a user