aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-02-10 10:08:32 +1100
committerNeil <nyamatongwe@gmail.com>2015-02-10 10:08:32 +1100
commit7ff487f2dda3411dd4cf34f5616c468435d2ef9b (patch)
treeacbf8ee062cd98f15f99bf8e7738a2de16949953 /src
parenta924da900a2bbd03f95b79363bb0e6618386f3e0 (diff)
downloadscintilla-mirror-7ff487f2dda3411dd4cf34f5616c468435d2ef9b.tar.gz
Add INDIC_FULLBOX.
Diffstat (limited to 'src')
-rw-r--r--src/Indicator.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index 9cbf7e12d..eea5877bb 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -116,9 +116,12 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r
surface->LineTo(static_cast<int>(rc.right), static_cast<int>(rcLine.top) + 1);
surface->LineTo(static_cast<int>(rc.left), static_cast<int>(rcLine.top) + 1);
surface->LineTo(static_cast<int>(rc.left), ymid + 1);
- } else if (sacDraw.style == INDIC_ROUNDBOX || sacDraw.style == INDIC_STRAIGHTBOX) {
+ } else if (sacDraw.style == INDIC_ROUNDBOX ||
+ sacDraw.style == INDIC_STRAIGHTBOX ||
+ sacDraw.style == INDIC_FULLBOX) {
PRectangle rcBox = rcLine;
- rcBox.top = rcLine.top + 1;
+ if (sacDraw.style != INDIC_FULLBOX)
+ rcBox.top = rcLine.top + 1;
rcBox.left = rc.left;
rcBox.right = rc.right;
surface->AlphaRectangle(rcBox, (sacDraw.style == INDIC_ROUNDBOX) ? 1 : 0,