comparison layer/WaveformLayer.cpp @ 1401:28075cc658c9

Scale pen for retina display on macOS as well as for hidpi display elsewhere
author Chris Cannam
date Thu, 15 Nov 2018 14:04:32 +0000
parents a0bfe366f9cb
children 4c359c2b220c
comparison
equal deleted inserted replaced
1400:decb7741d036 1401:28075cc658c9
1051 paint->drawPath(meanPath); 1051 paint->drawPath(meanPath);
1052 paint->restore(); 1052 paint->restore();
1053 } 1053 }
1054 1054
1055 if (!individualSamplePoints.empty()) { 1055 if (!individualSamplePoints.empty()) {
1056 double sz = PaintAssistant::scaleSize(2.0); 1056 double sz = v->scaleSize(2.0);
1057 if (v->getZoomLevel().zone == ZoomLevel::PixelsPerFrame) { 1057 if (v->getZoomLevel().zone == ZoomLevel::PixelsPerFrame) {
1058 if (v->getZoomLevel().level < 10) { 1058 if (v->getZoomLevel().level < 10) {
1059 sz = PaintAssistant::scaleSize(1.2); 1059 sz = v->scaleSize(1.2);
1060 } 1060 }
1061 } 1061 }
1062 paint->save(); 1062 paint->save();
1063 paint->setPen(QPen(baseColour, penWidth)); 1063 paint->setPen(QPen(baseColour, penWidth));
1064 for (QPointF p: individualSamplePoints) { 1064 for (QPointF p: individualSamplePoints) {