Mercurial > hg > svgui
diff layer/TimeValueLayer.cpp @ 1430:31499c3520ee single-point
Use overspill to render time-value point line properly at edges
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2019 11:18:45 +0000 |
parents | 8a7c82282fbc |
children | af824022bffd |
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp Tue Mar 19 13:06:35 2019 +0000 +++ b/layer/TimeValueLayer.cpp Wed Mar 20 11:18:45 2019 +0000 @@ -938,7 +938,7 @@ sv_frame_t frame1 = v->getFrameForX(x1); if (m_derivative) --frame0; - EventVector points(m_model->getEventsWithin(frame0, frame1 - frame0)); + EventVector points(m_model->getEventsWithin(frame0, frame1 - frame0, 1)); if (points.empty()) return; paint.setPen(getBaseQColor()); @@ -949,7 +949,7 @@ #ifdef DEBUG_TIME_VALUE_LAYER cerr << "TimeValueLayer::paint: resolution is " - << m_model->getResolution() << " frames" << endl; + << m_model->getResolution() << " frames" << endl; #endif double min = m_model->getValueMinimum();