diff options
author | nyamatongwe <unknown> | 2011-06-18 13:17:36 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-18 13:17:36 +1000 |
commit | 5f0b4c70a75cce03c473d3b10904a8199c4dd72e (patch) | |
tree | 89b8aa7f9116b3c40b41e3e479ebd9dace1d24cc /src/Indicator.cxx | |
parent | bce6bb713231634174baa6126779e038d01932d1 (diff) | |
download | scintilla-mirror-5f0b4c70a75cce03c473d3b10904a8199c4dd72e.tar.gz |
Added INDIC_SQUIGGLELOW. Bug #3314591.
From Thomas Linder Puls.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r-- | src/Indicator.cxx | 11 |
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; |