aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-09-26 11:37:09 +1000
committerNeil <nyamatongwe@gmail.com>2015-09-26 11:37:09 +1000
commit112842ac9aa9bd676471c934c20c97cd36e89163 (patch)
treeb05c75f5e73707aa551543ecf1e130d0b0d4021e /src
parentefbcda2a7fb57be925b201c0ad5a36cd0fd3ebd7 (diff)
downloadscintilla-mirror-112842ac9aa9bd676471c934c20c97cd36e89163.tar.gz
Centre whitespace dot when dot is larger than 1 pixel.
Diffstat (limited to 'src')
-rw-r--r--src/EditView.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index 58e6be623..f89e4e141 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -1575,7 +1575,8 @@ void EditView::DrawForeground(Surface *surface, const EditModel &model, const Vi
rcSegment.bottom);
surface->FillRectangle(rcSpace, textBack);
}
- PRectangle rcDot(xmid + xStart - static_cast<XYPOSITION>(subLineStart),
+ const int halfDotWidth = vsDraw.whitespaceSize / 2;
+ PRectangle rcDot(xmid + xStart - halfDotWidth - static_cast<XYPOSITION>(subLineStart),
rcSegment.top + vsDraw.lineHeight / 2, 0.0f, 0.0f);
rcDot.right = rcDot.left + vsDraw.whitespaceSize;
rcDot.bottom = rcDot.top + vsDraw.whitespaceSize;