diff options
| author | Zufu Liu <unknown> | 2019-04-07 10:03:38 +1000 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2019-04-07 10:03:38 +1000 |
| commit | d126e56e2c800188a2546c241299453c2e4304a8 (patch) | |
| tree | 182bcf6e60d78cddb6d68550f770b18ba36dd246 /src | |
| parent | 56792245ec9cd636f56b3dd9e837f12ca8d699e9 (diff) | |
| download | scintilla-mirror-d126e56e2c800188a2546c241299453c2e4304a8.tar.gz | |
Backport: Feature [feature-requests:#1276]. Add SC_MARK_VERTICALBOOKMARK.
Backport of changeset 7407:fc237c9afcdd.
Diffstat (limited to 'src')
| -rw-r--r-- | src/LineMarker.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index ca542be16..ea5e5e780 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -430,6 +430,16 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac Point::FromInts(ircWhole.left, centreY + halfHeight), }; surface->Polygon(pts, ELEMENTS(pts), fore, back); + } else if (markType == SC_MARK_VERTICALBOOKMARK) { + const int halfWidth = minDim / 3; + Point pts[] = { + Point::FromInts(centreX - halfWidth, centreY - dimOn2), + Point::FromInts(centreX + halfWidth, centreY - dimOn2), + Point::FromInts(centreX + halfWidth, centreY + dimOn2), + Point::FromInts(centreX, centreY + dimOn2 - halfWidth), + Point::FromInts(centreX - halfWidth, centreY + dimOn2), + }; + surface->Polygon(pts, ELEMENTS(pts), fore, back); } else { // SC_MARK_FULLRECT surface->FillRectangle(rcWhole, back); } |
