From c5506609e3e407d7fa578f9075d70b613d50a8bc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 5 Aug 2012 17:30:35 +1000 Subject: Align INDIC_DOTBOX to pixel grid for full intensity. --- src/Indicator.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Indicator.cxx b/src/Indicator.cxx index 7eab44433..68034e424 100644 --- a/src/Indicator.cxx +++ b/src/Indicator.cxx @@ -113,10 +113,9 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r rcBox.right = rc.right; surface->AlphaRectangle(rcBox, (style == INDIC_ROUNDBOX) ? 1 : 0, fore, fillAlpha, fore, outlineAlpha, 0); } else if (style == INDIC_DOTBOX) { - PRectangle rcBox = rcLine; + PRectangle rcBox = PixelGridAlign(rc); rcBox.top = rcLine.top + 1; - rcBox.left = rc.left; - rcBox.right = rc.right; + rcBox.bottom = rcLine.bottom; // Cap width at 4000 to avoid large allocations when mistakes made int width = Platform::Minimum(rcBox.Width(), 4000); RGBAImage image(width, rcBox.Height(), 1.0, 0); -- cgit v1.2.3