aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ListBox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win32/ListBox.cxx')
-rw-r--r--win32/ListBox.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/ListBox.cxx b/win32/ListBox.cxx
index 88b44d9ed..68fe48d27 100644
--- a/win32/ListBox.cxx
+++ b/win32/ListBox.cxx
@@ -117,8 +117,7 @@ ColourRGBA ColourElement(std::optional<ColourRGBA> colour, int nIndex) {
if (colour.has_value()) {
return colour.value();
}
- const DWORD colourValue = ::GetSysColor(nIndex);
- return ColourRGBA(colourValue);
+ return ColourFromSys(nIndex);
}
struct LBGraphics {