aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-05-04 11:20:13 +1000
committernyamatongwe <unknown>2011-05-04 11:20:13 +1000
commitc9209d18f432741eca0bfe33ee81b8b7dc05959e (patch)
tree9deebf54a2edf66ee3dc2b8f75e543c16fa4bd41 /src/Indicator.cxx
parentda90f4795826d7d55759f757c08c8fb95239ed28 (diff)
downloadscintilla-mirror-c9209d18f432741eca0bfe33ee81b8b7dc05959e.tar.gz
INDIC_STRAIGHTBOX added to indicators. Bug #3290435.
From Marko Njezic.
Diffstat (limited to 'src/Indicator.cxx')
-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);