comparison layer/WaveformLayer.cpp @ 1373:cca66ce390e0

Scaling tweaks
author Chris Cannam
date Mon, 05 Nov 2018 13:30:21 +0000
parents 2c01be836570
children 694004228ab7
comparison
equal deleted inserted replaced
1372:2c01be836570 1373:cca66ce390e0
1050 paint->drawPath(meanPath); 1050 paint->drawPath(meanPath);
1051 paint->restore(); 1051 paint->restore();
1052 } 1052 }
1053 1053
1054 if (!individualSamplePoints.empty()) { 1054 if (!individualSamplePoints.empty()) {
1055 double sz = ViewManager::scalePixelSize(2.0); 1055 double sz = PaintAssistant::scaleSize(2.0);
1056 if (v->getZoomLevel().zone == ZoomLevel::PixelsPerFrame) { 1056 if (v->getZoomLevel().zone == ZoomLevel::PixelsPerFrame) {
1057 if (v->getZoomLevel().level < 10) { 1057 if (v->getZoomLevel().level < 10) {
1058 sz = 1.5; 1058 sz = PaintAssistant::scaleSize(1.2);
1059 } 1059 }
1060 } 1060 }
1061 paint->save(); 1061 paint->save();
1062 paint->setPen(QPen(baseColour, penWidth)); 1062 paint->setPen(QPen(baseColour, penWidth));
1063 for (QPointF p: individualSamplePoints) { 1063 for (QPointF p: individualSamplePoints) {