summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-06-20 16:51:07 +0200
committerBad Diode <bd@badd10de.dev>2021-06-20 16:51:07 +0200
commitaa3f2965e4f7fb795ca59e9d80479b2406735b86 (patch)
tree70fd103dea02bc1d9dcf95f39fc16cf0c3d4af63
parentd4fad7432a13cc4fefe1e782899b8ad38d6ba160 (diff)
downloadgba-sequencer-aa3f2965e4f7fb795ca59e9d80479b2406735b86.tar.gz
gba-sequencer-aa3f2965e4f7fb795ca59e9d80479b2406735b86.zip
Ensure sweep is not showing for sq2
-rw-r--r--src/sequencer.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/sequencer.c b/src/sequencer.c
index 60b70df..5aaeab3 100644
--- a/src/sequencer.c
+++ b/src/sequencer.c
@@ -1052,7 +1052,7 @@ draw_parameters_square(ChannelSquareParams *params, bool sweep) {
1052 } 1052 }
1053 1053
1054 // Sweep number. 1054 // Sweep number.
1055 { 1055 if (sweep) {
1056 size_t x = PARAMS_START_X + 118; 1056 size_t x = PARAMS_START_X + 118;
1057 size_t y = PARAMS_START_Y + PARAMS_H - 25; 1057 size_t y = PARAMS_START_Y + PARAMS_H - 25;
1058 draw_line(x, y + 7, x + 4, y + 7, COL_FG); 1058 draw_line(x, y + 7, x + 4, y + 7, COL_FG);
@@ -1079,7 +1079,7 @@ draw_parameters_square(ChannelSquareParams *params, bool sweep) {
1079 } 1079 }
1080 1080
1081 // Sweep time. 1081 // Sweep time.
1082 { 1082 if (sweep) {
1083 size_t x = PARAMS_START_X + 146; 1083 size_t x = PARAMS_START_X + 146;
1084 size_t y = PARAMS_START_Y + PARAMS_H - 25; 1084 size_t y = PARAMS_START_Y + PARAMS_H - 25;
1085 draw_line(x, y + 7, x + 2, y + 7, COL_FG); 1085 draw_line(x, y + 7, x + 2, y + 7, COL_FG);
@@ -1106,7 +1106,7 @@ draw_parameters_square(ChannelSquareParams *params, bool sweep) {
1106 } 1106 }
1107 1107
1108 // Sweep direction. 1108 // Sweep direction.
1109 { 1109 if (sweep) {
1110 size_t x = PARAMS_START_X + 132; 1110 size_t x = PARAMS_START_X + 132;
1111 size_t y = PARAMS_START_Y + PARAMS_H - 45; 1111 size_t y = PARAMS_START_Y + PARAMS_H - 45;
1112 draw_line(x, y + 7, x + 4, y + 7, COL_FG); 1112 draw_line(x, y + 7, x + 4, y + 7, COL_FG);
@@ -1134,7 +1134,9 @@ draw_parameters_square(ChannelSquareParams *params, bool sweep) {
1134 size_t y = PARAMS_START_Y + PARAMS_H - 43; 1134 size_t y = PARAMS_START_Y + PARAMS_H - 43;
1135 txt_drawf_small("shape", x + 1, y - 12, 4, COL_FG); 1135 txt_drawf_small("shape", x + 1, y - 12, 4, COL_FG);
1136 txt_drawf_small("envelope", x + 54, y - 12, 4, COL_FG); 1136 txt_drawf_small("envelope", x + 54, y - 12, 4, COL_FG);
1137 txt_drawf_small("sweep", x + 133, y - 12, 4, COL_FG); 1137 if (sweep) {
1138 txt_drawf_small("sweep", x + 133, y - 12, 4, COL_FG);
1139 }
1138 } 1140 }
1139} 1141}
1140 1142