End of track warning on Waveform overview is incomplet when Waveform display is hiden
RafaelFrance opened this issue · comments
For me, with 100% app scaling (both Mixxx and system), it looks like this:
Yes, there is some rounding issue or whatever in the paint code that makes the top border thinner than the other borders.
That issue seems to be magnified when Mixxx is scaled (by the OS in your case, as you screenshot indicates, is it 125% or even 150%?).
The paint code is here.
mixxx/src/widget/woverview.cpp
Lines 794 to 802 in c0b4f50
The border width is 1.5 * scale factor, and the rectangle's bottom right point is shifted back inside the view box. This is to compensate for
QPainter::drawRect(const QRectF &rectangle)
Draws the current rectangle with the current pen and brush.
A filled rectangle has a size of rectangle.size(). A stroked rectangle has a size of rectangle.size() plus the pen width.
So the stroke overlaps the widget at the top and left by [stroke width / 2] but at the bottom, due to shifting, it overlaps less, hence the border appears to be drawn with different widths.
Though, I don't fully understand why this eliminates the top border entirely.
I'll take a look.
OS is at 100%. Screenshot was at this scale.