diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-10-07 18:55:27 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-10-07 18:55:27 +0200 |
commit | 9af78fe5ee82e8a57911e6350b7d2e6a3a966969 (patch) | |
tree | 76bdf56425c772737b108fe371157f0dd7777173 | |
parent | 2cb0f9837eff48dd6579e456beb33981f4fce6d8 (diff) | |
download | saw-9af78fe5ee82e8a57911e6350b7d2e6a3a966969.zip |
Fix track inputs
-rw-r--r-- | source/saw/main.c | 8 |
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; |