aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-05-04 11:20:13 +1000
committernyamatongwe <devnull@localhost>2011-05-04 11:20:13 +1000
commitc13ce7ecfa8722a3504f0bb4e4aa348418f9e0b4 (patch)
tree79f3a8a24af6a8c474b39c30780d09d2471e891e /src
parent09889388ba216a36f962789b570e10c076658c6a (diff)
downloadscintilla-mirror-c13ce7ecfa8722a3504f0bb4e4aa348418f9e0b4.tar.gz
INDIC_STRAIGHTBOX added to indicators. Bug #3290435.
From Marko Njezic.
Diffstat (limited to 'src')
-rw-r--r--src/Indicator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index f4e137286..5c352bf1c 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -67,12 +67,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) {
+ } else if (style == INDIC_ROUNDBOX || style == INDIC_STRAIGHTBOX) {
PRectangle rcBox = rcLine;
rcBox.top = rcLine.top + 1;
rcBox.left = rc.left;
rcBox.right = rc.right;
- surface->AlphaRectangle(rcBox, 1, fore.allocated, fillAlpha, fore.allocated, outlineAlpha, 0);
+ surface->AlphaRectangle(rcBox, (style == INDIC_ROUNDBOX) ? 1 : 0, fore.allocated, fillAlpha, fore.allocated, outlineAlpha, 0);
} else { // Either INDIC_PLAIN or unknown
surface->MoveTo(rc.left, ymid);
surface->LineTo(rc.right, ymid);