summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
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 &&