diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2014-01-21 09:18:57 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2014-01-21 09:18:57 +1100 |
commit | 023603c25dfdc73b0a51baaf3309d1bf18e04261 (patch) | |
tree | d2bbc7307bbcce20a70fc0f40c6b9c0594e73211 /src | |
parent | 9bc61c70c534d999ae0ad01fe56f59a41e7c9f16 (diff) | |
download | scintilla-mirror-023603c25dfdc73b0a51baaf3309d1bf18e04261.tar.gz |
Implement new marker symbol SC_MARK_BOOKMARK.
Diffstat (limited to 'src')
-rw-r--r-- | src/LineMarker.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index baa916254..cf44928b4 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -1,6 +1,6 @@ // Scintilla source code edit control /** @file LineMarker.cxx - ** Defines the look of a line marker in the margin . + ** Defines the look of a line marker in the margin. **/ // Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. @@ -380,6 +380,17 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac PRectangle rcLeft = rcWhole; rcLeft.right = rcLeft.left + 4; surface->FillRectangle(rcLeft, back); + } else if (markType == SC_MARK_BOOKMARK) { + int halfHeight = minDim / 3; + Point pts[] = { + Point(rc.left, centreY-halfHeight), + Point(rc.right-3, centreY-halfHeight), + Point(rc.right-3-halfHeight, centreY), + Point(rc.right-3, centreY+halfHeight), + Point(rc.left, centreY+halfHeight), + }; + surface->Polygon(pts, sizeof(pts) / sizeof(pts[0]), + fore, back); } else { // SC_MARK_FULLRECT surface->FillRectangle(rcWhole, back); } |