aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-09-22 17:49:03 +1000
committerNeil <nyamatongwe@gmail.com>2014-09-22 17:49:03 +1000
commit2e246a4a328db1d2f0969733226fd35395ff63f8 (patch)
tree4698d3ecce47814217cd8a4efe8bdbd62070e778 /src/ViewStyle.cxx
parent7916db6bc6f7902823b1715177685422d35030f1 (diff)
downloadscintilla-mirror-2e246a4a328db1d2f0969733226fd35395ff63f8.tar.gz
Add a constructor that takes arguments for each attribute to make it easier to
set up indicators. Changed field order so that the colour, which is likely to be set, is before under which is likely to be left default.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index e3c1d65d7..b60905caf 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -192,15 +192,9 @@ void ViewStyle::Init(size_t stylesSize_) {
// There are no image markers by default, so no need for calling CalcLargestMarkerHeight()
largestMarkerHeight = 0;
- indicators[0].style = INDIC_SQUIGGLE;
- indicators[0].under = false;
- indicators[0].fore = ColourDesired(0, 0x7f, 0);
- indicators[1].style = INDIC_TT;
- indicators[1].under = false;
- indicators[1].fore = ColourDesired(0, 0, 0xff);
- indicators[2].style = INDIC_PLAIN;
- indicators[2].under = false;
- indicators[2].fore = ColourDesired(0xff, 0, 0);
+ indicators[0] = Indicator(INDIC_SQUIGGLE, ColourDesired(0, 0x7f, 0));
+ indicators[1] = Indicator(INDIC_TT, ColourDesired(0, 0, 0xff));
+ indicators[2] = Indicator(INDIC_PLAIN, ColourDesired(0xff, 0, 0));
technology = SC_TECHNOLOGY_DEFAULT;
lineHeight = 1;