comparison layer/WaveformLayer.cpp @ 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 c8a6fd3f9dff
children 696e569ff21b
comparison
equal deleted inserted replaced
1417:2487521e857b 1418:e866102db32a
1027 } 1027 }
1028 } 1028 }
1029 } 1029 }
1030 1030
1031 double penWidth = 1.0; 1031 double penWidth = 1.0;
1032 if (v->getZoomLevel().zone == ZoomLevel::FramesPerPixel) {
1033 penWidth = 0.0;
1034 }
1032 1035
1033 if (m_model->isReady()) { 1036 if (m_model->isReady()) {
1034 paint->setPen(QPen(baseColour, penWidth)); 1037 paint->setPen(QPen(baseColour, penWidth));
1035 } else { 1038 } else {
1036 paint->setPen(QPen(midColour, penWidth)); 1039 paint->setPen(QPen(midColour, penWidth));