changeset 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 2487521e857b
children 2e0d9e68343d
files layer/WaveformLayer.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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));