Mercurial > hg > svgui
comparison layer/TimeValueLayer.cpp @ 1552:045063dcd2bc
Merge
author | Chris Cannam |
---|---|
date | Thu, 21 Nov 2019 14:03:19 +0000 |
parents | e95cefd4aa81 |
children |
comparison
equal
deleted
inserted
replaced
1551:e79731086b0f | 1552:045063dcd2bc |
---|---|
913 | 913 |
914 paint.setRenderHint(QPainter::Antialiasing, false); | 914 paint.setRenderHint(QPainter::Antialiasing, false); |
915 | 915 |
916 // Profiler profiler("TimeValueLayer::paint", true); | 916 // Profiler profiler("TimeValueLayer::paint", true); |
917 | 917 |
918 int x0 = rect.left(), x1 = rect.right(); | 918 int x0 = rect.left(); |
919 int x1 = x0 + rect.width(); | |
919 sv_frame_t frame0 = v->getFrameForX(x0); | 920 sv_frame_t frame0 = v->getFrameForX(x0); |
920 sv_frame_t frame1 = v->getFrameForX(x1); | 921 sv_frame_t frame1 = v->getFrameForX(x1); |
921 if (m_derivative) --frame0; | 922 if (m_derivative) --frame0; |
922 | 923 |
923 EventVector points(model->getEventsWithin(frame0, frame1 - frame0, 1)); | 924 EventVector points(model->getEventsWithin(frame0, frame1 - frame0, 1)); |