implemented basic trimming

This commit is contained in:
itsmattkc
2019-08-22 13:06:21 +10:00
parent 0ede7bd319
commit 51a441bc29
7 changed files with 118 additions and 21 deletions
@@ -55,6 +55,7 @@ void TimelineViewClipItem::UpdateRect()
double item_left = TimeToScreenCoord(clip_->in());
double item_width = TimeToScreenCoord(clip_->length());
// -1 on width and height so we don't overlap any adjacent clips
setRect(0, y_, item_width - 1, height_ - 1);
setPos(item_left, 0.0);
}