diff options
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | source/saw/main.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -21,6 +21,7 @@ To-Do list - Use OpenGL ES on all platforms - UI: Panning and scaling - Sound: Track looping +- Implement Undo and Redo Done 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 && |