Mercurial > hg > svgui
changeset 1371:ca9a36a5ab76
Progressively increase sample-box size slightly
author | Chris Cannam |
---|---|
date | Fri, 02 Nov 2018 15:23:42 +0000 |
parents | 38f35c2e03c4 |
children | 2c01be836570 |
files | layer/WaveformLayer.cpp |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)); }