comparison layer/WaveformLayer.cpp @ 1393:a0bfe366f9cb spectrogramparam

Correct positioning for centre line when antialiasing with non-0-width pen
author Chris Cannam
date Wed, 14 Nov 2018 14:16:06 +0000
parents 694004228ab7
children 28075cc658c9
comparison
equal deleted inserted replaced
1392:900bed394f5a 1393:a0bfe366f9cb
781 my = m + (((ch - minChannel) * h) / channels); 781 my = m + (((ch - minChannel) * h) / channels);
782 } 782 }
783 783
784 // Horizontal axis along middle 784 // Horizontal axis along middle
785 paint->setPen(QPen(midColour, 0)); 785 paint->setPen(QPen(midColour, 0));
786 paint->drawLine(x0, my, x1, my); 786 paint->drawLine(QPointF(x0, my + 0.5), QPointF(x1, my + 0.5));
787 787
788 paintChannelScaleGuides(v, paint, rect, ch); 788 paintChannelScaleGuides(v, paint, rect, ch);
789 789
790 int rangeix = ch - minChannel; 790 int rangeix = ch - minChannel;
791 791