diff options
author | nyamatongwe <devnull@localhost> | 2012-08-05 17:30:35 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-08-05 17:30:35 +1000 |
commit | c5506609e3e407d7fa578f9075d70b613d50a8bc (patch) | |
tree | bf095dedbc5e94261cb2dfef1e8a7b848dc3b0b6 | |
parent | f69ba9aceede05a682156e755a12dae0321fb5e4 (diff) | |
download | scintilla-mirror-c5506609e3e407d7fa578f9075d70b613d50a8bc.tar.gz |
Align INDIC_DOTBOX to pixel grid for full intensity.
-rw-r--r-- | src/Indicator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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); |