aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-06-18 13:17:36 +1000
committernyamatongwe <unknown>2011-06-18 13:17:36 +1000
commit5f0b4c70a75cce03c473d3b10904a8199c4dd72e (patch)
tree89b8aa7f9116b3c40b41e3e479ebd9dace1d24cc /src/Indicator.cxx
parentbce6bb713231634174baa6126779e038d01932d1 (diff)
downloadscintilla-mirror-5f0b4c70a75cce03c473d3b10904a8199c4dd72e.tar.gz
Added INDIC_SQUIGGLELOW. Bug #3314591.
From Thomas Linder Puls.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r--src/Indicator.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index c1d07b2e6..5efee75e6 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -27,6 +27,17 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r
y = 2 - y;
}
surface->LineTo(rc.right, rc.top + y); // Finish the line
+ } else if (style == INDIC_SQUIGGLELOW) {
+ surface->MoveTo(rc.left, rc.top);
+ int x = rc.left + 3;
+ int y = 0;
+ while (x < rc.right) {
+ surface->LineTo(x-1, rc.top + y);
+ y = 1 - y;
+ surface->LineTo(x, rc.top + y);
+ x += 3;
+ }
+ surface->LineTo(rc.right, rc.top + y); // Finish the line
} else if (style == INDIC_TT) {
surface->MoveTo(rc.left, ymid);
int x = rc.left + 5;