diff options
| author | nyamatongwe <unknown> | 2011-05-04 11:20:13 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-05-04 11:20:13 +1000 | 
| commit | c9209d18f432741eca0bfe33ee81b8b7dc05959e (patch) | |
| tree | 9deebf54a2edf66ee3dc2b8f75e543c16fa4bd41 /src | |
| parent | da90f4795826d7d55759f757c08c8fb95239ed28 (diff) | |
| download | scintilla-mirror-c9209d18f432741eca0bfe33ee81b8b7dc05959e.tar.gz | |
INDIC_STRAIGHTBOX added to indicators. Bug #3290435.
From Marko Njezic.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Indicator.cxx | 4 | 
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); | 
