From 112842ac9aa9bd676471c934c20c97cd36e89163 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 26 Sep 2015 11:37:09 +1000 Subject: Centre whitespace dot when dot is larger than 1 pixel. --- src/EditView.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(subLineStart), + const int halfDotWidth = vsDraw.whitespaceSize / 2; + PRectangle rcDot(xmid + xStart - halfDotWidth - static_cast(subLineStart), rcSegment.top + vsDraw.lineHeight / 2, 0.0f, 0.0f); rcDot.right = rcDot.left + vsDraw.whitespaceSize; rcDot.bottom = rcDot.top + vsDraw.whitespaceSize; -- cgit v1.2.3