# HG changeset patch # User Chris Cannam # Date 1137087923 0 # Node ID 634324c6296eecb1774f00432d2e429a48a3125f # Parent 02aaea1ffaf7152880e7d37899bc2803e5d4cd70 * switch off antialiasing for dense lines (for speed reasons) diff -r 02aaea1ffaf7 -r 634324c6296e layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Thu Jan 12 17:19:08 2006 +0000 +++ b/layer/TimeValueLayer.cpp Thu Jan 12 17:45:23 2006 +0000 @@ -313,10 +313,13 @@ if (!localPoints.empty()) illuminateFrame = localPoints.begin()->frame; } + int w = m_model->getResolution() / zoomLevel; + paint.save(); - if (m_plotStyle == PlotLines || - m_plotStyle == PlotCurve) { + if (w > 1 && + (m_plotStyle == PlotLines || + m_plotStyle == PlotCurve)) { paint.setRenderHint(QPainter::Antialiasing, true); } QPainterPath path; @@ -330,7 +333,6 @@ int y = int(nearbyint(m_view->height() - ((p.value - min) * m_view->height()) / (max - min))); - int w = m_model->getResolution() / zoomLevel; if (w < 1) w = 1;