aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2025-03-28 15:52:24 +1100
committerNeil <nyamatongwe@gmail.com>2025-03-28 15:52:24 +1100
commit2b897e4c4a0cf9d67095b4d4d37d852f61d02667 (patch)
tree7d8d6ea6fef1f9f7b01507e503239d0b9acc2d5e /win32/ScintillaWin.cxx
parent44a2755858009d5c14732d82814f9b5558f99ef4 (diff)
downloadscintilla-mirror-2b897e4c4a0cf9d67095b4d4d37d852f61d02667.tar.gz
Standardize access to system colours through GetSysColor and avoid casts.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 0dc8acf68..77fed597c 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -2617,7 +2617,7 @@ void ScintillaWin::UpdateBaseElements() {
};
bool changed = false;
for (const ElementToIndex &ei : eti) {
- changed = vs.SetElementBase(ei.element, ColourRGBA::FromRGB(static_cast<int>(::GetSysColor(ei.nIndex)))) || changed;
+ changed = vs.SetElementBase(ei.element, ColourFromSys(ei.nIndex)) || changed;
}
if (changed) {
Redraw();