aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-25 09:52:20 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-25 09:52:20 +1000
commit81f7847af4cc9f51f02ab191c73f394c457518bd (patch)
treeef214ea786c00e9618756c26b99299ac1fa58bf6 /src/Indicator.cxx
parent241f33a38ca0887d1a47399de1bcf7ba0d544c41 (diff)
downloadscintilla-mirror-81f7847af4cc9f51f02ab191c73f394c457518bd.tar.gz
Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
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 f65b461ef..e43027837 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -28,7 +28,7 @@ using namespace Scintilla;
void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, const PRectangle &rcCharacter, State state, int value) const {
StyleAndColour sacDraw = sacNormal;
if (Flags() & SC_INDICFLAG_VALUEFORE) {
- sacDraw.fore = ColourDesired(value & SC_INDICVALUEMASK);
+ sacDraw.fore = ColourAlpha::FromRGB(value & SC_INDICVALUEMASK);
}
if (state == State::hover) {
sacDraw = sacHover;