aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-04-23 02:26:06 +0000
committernyamatongwe <unknown>2007-04-23 02:26:06 +0000
commitbde8aef4ff5e6bd93c3b2bbd8fd7de80bccbbdb8 (patch)
tree7799078040df57b7f5ce1072d768e476a7187041 /src/Editor.cxx
parent7baad7314df72e0c2f548482df1c288a2587d3cd (diff)
downloadscintilla-mirror-bde8aef4ff5e6bd93c3b2bbd8fd7de80bccbbdb8.tar.gz
Added setting to allow each indicator to be drawn either under or
over text.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 2a1018252..addfedf6e 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2356,7 +2356,7 @@ void Editor::DrawIndicators(Surface *surface, ViewStyle &vsDraw, int line, int x
}
for (Decoration *deco=pdoc->decorations.root; deco; deco = deco->next) {
- if (under == (deco->indicator >= 16)) {
+ if (under == vsDraw.indicators[deco->indicator].under) {
int startPos = posLineStart + subLineStart;
if (!deco->rs.ValueAt(startPos)) {
startPos = deco->rs.EndRun(startPos);
@@ -7138,6 +7138,16 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_INDICGETFORE:
return (wParam <= INDIC_MAX) ? vs.indicators[wParam].fore.desired.AsLong() : 0;
+ case SCI_INDICSETUNDER:
+ if (wParam <= INDIC_MAX) {
+ vs.indicators[wParam].under = lParam != 0;
+ InvalidateStyleRedraw();
+ }
+ break;
+
+ case SCI_INDICGETUNDER:
+ return (wParam <= INDIC_MAX) ? vs.indicators[wParam].under : 0;
+
case SCI_SETINDICATORCURRENT:
pdoc->decorations.SetCurrentIndicator(wParam);
break;