aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-04-24 16:38:10 +0200
committerBad Diode <bd@badd10de.dev>2023-04-24 16:38:10 +0200
commit694bcf4790f7c03751972832bf6f2cbe6a215d04 (patch)
treeeb05be3fb4cce696da2cd04f4ced35507bc386f2
parent595cfc36afbe4192bf24b0a2f5c2f95e87e12295 (diff)
downloadstepper-694bcf4790f7c03751972832bf6f2cbe6a215d04.tar.gz
stepper-694bcf4790f7c03751972832bf6f2cbe6a215d04.zip
Fix visual glitch when switching to pattern selection
-rw-r--r--src/sequencer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sequencer.c b/src/sequencer.c
index 44ee8be..397d6f9 100644
--- a/src/sequencer.c
+++ b/src/sequencer.c
@@ -250,6 +250,7 @@ handle_channel_selection(void) {
250 redraw_params = true; 250 redraw_params = true;
251 } else if (key_tap(KEY_LEFT)) { 251 } else if (key_tap(KEY_LEFT)) {
252 input_handler = handle_pattern_selection; 252 input_handler = handle_pattern_selection;
253 redraw_params = true;
253 } else if (key_tap(KEY_UP)) { 254 } else if (key_tap(KEY_UP)) {
254 if (channel_selection_loc == 0) { 255 if (channel_selection_loc == 0) {
255 channel_selection_loc = SEQ_N_CHANNELS - 1; 256 channel_selection_loc = SEQ_N_CHANNELS - 1;
@@ -442,6 +443,7 @@ handle_pattern_selection(void) {
442 } 443 }
443 if (key_tap(KEY_RIGHT)) { 444 if (key_tap(KEY_RIGHT)) {
444 input_handler = handle_channel_selection; 445 input_handler = handle_channel_selection;
446 redraw_params = true;
445 } else if (key_tap(KEY_UP)) { 447 } else if (key_tap(KEY_UP)) {
446 if (pattern_selection_loc > 0) { 448 if (pattern_selection_loc > 0) {
447 pattern_selection_loc = pattern_selection_loc - 1; 449 pattern_selection_loc = pattern_selection_loc - 1;