aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/drawing.c2
-rw-r--r--src/sequencer.c7
3 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 61361e2..cb49812 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS))
27INC_FLAGS += -I$(LIBGBA_SRC) 27INC_FLAGS += -I$(LIBGBA_SRC)
28 28
29# Output library names and executables. 29# Output library names and executables.
30TARGET := STEPPER-v1.1 30TARGET := STEPPER-v1.2
31ELF := $(BUILD_DIR)/$(TARGET).elf 31ELF := $(BUILD_DIR)/$(TARGET).elf
32BIN := $(BUILD_DIR)/$(TARGET).gba 32BIN := $(BUILD_DIR)/$(TARGET).gba
33 33
diff --git a/src/drawing.c b/src/drawing.c
index 7a3fff0..964c4ce 100644
--- a/src/drawing.c
+++ b/src/drawing.c
@@ -546,7 +546,7 @@ draw_wave_pattern(u8 *pattern, int x, int y, u8 clr) {
546IWRAM_CODE 546IWRAM_CODE
547void 547void
548clear_parameters(void) { 548clear_parameters(void) {
549 size_t x0 = PARAMS_START_X; 549 size_t x0 = PARAMS_START_X -1;
550 size_t y0 = PARAMS_START_Y; 550 size_t y0 = PARAMS_START_Y;
551 size_t x1 = PARAMS_START_X + PARAMS_W; 551 size_t x1 = PARAMS_START_X + PARAMS_W;
552 size_t y1 = PARAMS_START_Y + PARAMS_H - 1; 552 size_t y1 = PARAMS_START_Y + PARAMS_H - 1;
diff --git a/src/sequencer.c b/src/sequencer.c
index c793a3f..784d132 100644
--- a/src/sequencer.c
+++ b/src/sequencer.c
@@ -284,6 +284,7 @@ select_bank(int i) {
284 redraw_trigs = true; 284 redraw_trigs = true;
285 redraw_channels = true; 285 redraw_channels = true;
286 redraw_bank_buttons = true; 286 redraw_bank_buttons = true;
287 redraw_bpm = true;
287} 288}
288 289
289void 290void
@@ -388,6 +389,7 @@ handle_param_selection_sq1(void) {
388 // Go back to trigger selection. 389 // Go back to trigger selection.
389 if (key_released(KEY_A)) { 390 if (key_released(KEY_A)) {
390 input_handler = handle_trigger_selection; 391 input_handler = handle_trigger_selection;
392 redraw_params = true;
391 return; 393 return;
392 } 394 }
393 395
@@ -477,6 +479,7 @@ handle_param_selection_sq2(void) {
477 // Go back to trigger selection. 479 // Go back to trigger selection.
478 if (key_released(KEY_A)) { 480 if (key_released(KEY_A)) {
479 input_handler = handle_trigger_selection; 481 input_handler = handle_trigger_selection;
482 redraw_params = true;
480 return; 483 return;
481 } 484 }
482 485
@@ -490,6 +493,7 @@ handle_param_selection_sq2(void) {
490 inc = -1; 493 inc = -1;
491 } 494 }
492 param_selection_loc = CLAMP(loc + inc, 0, 3); 495 param_selection_loc = CLAMP(loc + inc, 0, 3);
496 redraw_params = true;
493 } 497 }
494 498
495 // Adjust parameter. 499 // Adjust parameter.
@@ -527,6 +531,7 @@ handle_param_selection_wave(void) {
527 // Go back to trigger selection. 531 // Go back to trigger selection.
528 if (key_released(KEY_A)) { 532 if (key_released(KEY_A)) {
529 input_handler = handle_trigger_selection; 533 input_handler = handle_trigger_selection;
534 redraw_params = true;
530 return; 535 return;
531 } 536 }
532 537
@@ -554,6 +559,7 @@ handle_param_selection_wave(void) {
554 } 559 }
555 } 560 }
556 param_selection_loc = CLAMP(loc + inc, 0, 73); 561 param_selection_loc = CLAMP(loc + inc, 0, 73);
562 redraw_params = true;
557 } 563 }
558 if (key_tap(KEY_UP) || key_tap(KEY_DOWN)) { 564 if (key_tap(KEY_UP) || key_tap(KEY_DOWN)) {
559 int inc = 0; 565 int inc = 0;
@@ -608,6 +614,7 @@ handle_param_selection_wave(void) {
608 } 614 }
609 } 615 }
610 param_selection_loc = CLAMP(loc + inc, 0, 73); 616 param_selection_loc = CLAMP(loc + inc, 0, 73);
617 redraw_params = true;
611 } 618 }
612 619
613 // Adjust parameter. 620 // Adjust parameter.