# HG changeset patch # User Chris Cannam # Date 1541172222 0 # Node ID ca9a36a5ab7655544ab8da1a1a726b664a43a33b # Parent 38f35c2e03c44053d9253a76aca0ea493989ef70 Progressively increase sample-box size slightly diff -r 38f35c2e03c4 -r ca9a36a5ab76 layer/WaveformLayer.cpp --- a/layer/WaveformLayer.cpp Thu Nov 01 10:12:12 2018 +0000 +++ b/layer/WaveformLayer.cpp Fri Nov 02 15:23:42 2018 +0000 @@ -1041,9 +1041,14 @@ } if (!individualSamplePoints.empty()) { + double sz = ViewManager::scalePixelSize(2.0); + if (v->getZoomLevel().zone == ZoomLevel::PixelsPerFrame) { + if (v->getZoomLevel().level < 10) { + sz = 1.5; + } + } paint->save(); paint->setPen(QPen(baseColour, penWidth)); - double sz = ViewManager::scalePixelSize(2.0); for (QPointF p: individualSamplePoints) { paint->drawRect(QRectF(p.x() - sz/2, p.y() - sz/2, sz, sz)); }