aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-06-18 13:17:36 +1000
committernyamatongwe <devnull@localhost>2011-06-18 13:17:36 +1000
commitf67d642c87f64050f3537e15a676ced2807b49b2 (patch)
tree798fa45896f8e45f8dd8e879d7e66ba194f6a48b /src
parent31d40085adf9a952d254de47113fe7c0d34c49d1 (diff)
downloadscintilla-mirror-f67d642c87f64050f3537e15a676ced2807b49b2.tar.gz
Added INDIC_SQUIGGLELOW. Bug #3314591.
From Thomas Linder Puls.
Diffstat (limited to 'src')
-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;