summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-10-07 18:55:27 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-10-07 18:55:27 +0200
commit9af78fe5ee82e8a57911e6350b7d2e6a3a966969 (patch)
tree76bdf56425c772737b108fe371157f0dd7777173
parent2cb0f9837eff48dd6579e456beb33981f4fce6d8 (diff)
downloadsaw-9af78fe5ee82e8a57911e6350b7d2e6a3a966969.zip
Fix track inputs
-rw-r--r--source/saw/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/saw/main.c b/source/saw/main.c
index 0a60577..a10af64 100644
--- a/source/saw/main.c
+++ b/source/saw/main.c
@@ -776,6 +776,13 @@ static void saw_ui_track(saw_track_t *track, i64 x0, i64 y0,
for (i32 input_index = TRACK_INPUT_INSTRUMENT;
input_index <= TRACK_INPUT_RELEASE; ++input_index) {
+ // FIXME
+ // Implement Unison and Spread.
+ //
+ if (input_index == TRACK_INPUT_UNISON ||
+ input_index == TRACK_INPUT_SPREAD)
+ continue;
+
if ((track->value_input == TRACK_INPUT_NONE ||
track->value_input == input_index) &&
saw_mouse_x >= x0 && saw_mouse_x < x0 + width &&
@@ -852,6 +859,7 @@ static void saw_ui_track(saw_track_t *track, i64 x0, i64 y0,
}
}
}
+
if (input_index == TRACK_INPUT_VOLUME)
next_y += header_offset;
next_y += text_height;