summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-27 07:11:17 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-27 07:11:17 +0200
commit9b41f768aee9a0f1aeabbdc7aaa55bc76a0a4ec4 (patch)
treefefeb8c54126a3e9be2d89225485a3caf01c57fd /source
parent60d4505e1972560b4c734004e4388cbad1b6ba0b (diff)
downloadsaw-9b41f768aee9a0f1aeabbdc7aaa55bc76a0a4ec4.zip
Update TODO; fix note stretching
Diffstat (limited to 'source')
-rw-r--r--source/saw/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/saw/main.c b/source/saw/main.c
index ad00874..44effd8 100644
--- a/source/saw/main.c
+++ b/source/saw/main.c
@@ -392,7 +392,7 @@ static void saw_ui_roll(saw_roll_t *roll, i64 x0, i64 y0, i64 width,
p->duration = 1 + t - roll->grid_time;
} else {
p->time = t;
- p->duration = roll->grid_time - t;
+ p->duration = roll->grid_time - t + 1;
}
}
@@ -407,7 +407,7 @@ static void saw_ui_roll(saw_roll_t *roll, i64 x0, i64 y0, i64 width,
q->time + q->duration > p->time) {
p->time = q->time + q->duration;
p->duration = roll->grid_time > p->time
- ? roll->grid_time - p->time
+ ? roll->grid_time - p->time + 1
: 1;
}
if (q->time > roll->grid_time &&