Mercurial > hg > svgui
diff layer/WaveformLayer.cpp @ 1418:e866102db32a
Use zero-width pen when zoomed out - this seems to make a huge difference to speed when rendering on top of another layer, for some reason
author | Chris Cannam |
---|---|
date | Thu, 14 Feb 2019 13:04:57 +0000 |
parents | c8a6fd3f9dff |
children | 696e569ff21b |
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp Wed Jan 23 14:44:16 2019 +0000 +++ b/layer/WaveformLayer.cpp Thu Feb 14 13:04:57 2019 +0000 @@ -1029,6 +1029,9 @@ } double penWidth = 1.0; + if (v->getZoomLevel().zone == ZoomLevel::FramesPerPixel) { + penWidth = 0.0; + } if (m_model->isReady()) { paint->setPen(QPen(baseColour, penWidth));