aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-19 17:26:14 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-19 17:26:14 +1000
commit8822e0ed1db342bf1947004c660a9c8649ce35c0 (patch)
tree8756ea3c36f8319354419f0aa2d48fbf9b18eac6 /src/Indicator.cxx
parent1edfa1eaef9301aeffe31253cfc06709d4d8aae0 (diff)
downloadscintilla-mirror-8822e0ed1db342bf1947004c660a9c8649ce35c0.tar.gz
Backport: Use ColourDesired constructor explicitly to make more obvious.
Constructor not marked explicit as may be used in external platform layers. Backport of changeset 6706:73c8bc321f62.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r--src/Indicator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index 3551e7202..5e229039e 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -28,7 +28,7 @@ static PRectangle PixelGridAlign(const PRectangle &rc) {
void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, const PRectangle &rcCharacter, DrawState drawState, int value) const {
StyleAndColour sacDraw = sacNormal;
if (Flags() & SC_INDICFLAG_VALUEFORE) {
- sacDraw.fore = value & SC_INDICVALUEMASK;
+ sacDraw.fore = ColourDesired(value & SC_INDICVALUEMASK);
}
if (drawState == drawHover) {
sacDraw = sacHover;