aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-11 08:36:14 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-11 08:36:14 +1000
commita2eaf21d3ce1010aa32bb09b409fc6b019b31732 (patch)
treec09b0b996948d4eb88bd459bd4917dea4f7ab9eb /src/Editor.cxx
parent7b98798ee4047aec150927d3b5fc6a75f78e0273 (diff)
downloadscintilla-mirror-a2eaf21d3ce1010aa32bb09b409fc6b019b31732.tar.gz
Add tests for element APIs. Fix SCI_GETELEMENTCOLOUR to return value including
alpha. Set selection and caret elements as allowing translucency.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index e6a31f11a..17749d799 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -7200,7 +7200,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
break;
case SCI_GETELEMENTCOLOUR:
- return vs.ElementColour(static_cast<int>(wParam)).value_or(ColourAlpha()).OpaqueRGB();
+ return vs.ElementColour(static_cast<int>(wParam)).value_or(ColourAlpha()).AsInteger();
case SCI_RESETELEMENTCOLOUR:
vs.ResetElement(static_cast<int>(wParam));