diff options
author | nyamatongwe <devnull@localhost> | 2006-02-26 00:58:22 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-02-26 00:58:22 +0000 |
commit | 38a5a1bfddd9beab8370970084514eba5cfd8486 (patch) | |
tree | 43f3b3cd67b11f8e5950bbae9e9ed0fc02af99ed /src/Indicator.cxx | |
parent | 818cf866da84841e0f46c8f7b717b18926032f25 (diff) | |
download | scintilla-mirror-38a5a1bfddd9beab8370970084514eba5cfd8486.tar.gz |
Translucency implementation for INDIC_ROUNDBOX and caret line.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r-- | src/Indicator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx index a42abb203..7624a4a52 100644 --- a/src/Indicator.cxx +++ b/src/Indicator.cxx @@ -63,6 +63,12 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r surface->LineTo(rc.right, rcLine.top+1); surface->LineTo(rc.left, rcLine.top+1); surface->LineTo(rc.left, ymid+1); + } else if (style == INDIC_ROUNDBOX) { + PRectangle rcBox = rcLine; + rcBox.top = rcLine.top + 1; + rcBox.left = rc.left; + rcBox.right = rc.right; + surface->AlphaRectangle(rcBox, 1, fore.allocated, 30, fore.allocated, 50, 0); } else { // Either INDIC_PLAIN or unknown surface->MoveTo(rc.left, ymid); surface->LineTo(rc.right, ymid); |