From 2c61e1b0daa1d19e6fa827f878eb8f9812577e80 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Jul 2015 03:40:16 +0200 Subject: [PATCH] No changes, just use helper wxColourToPalRGB() in wxMSW code. This is shorter than writing out all wxColour components. --- src/msw/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 1e53d52128..a266a60892 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1225,7 +1225,7 @@ wxColour wxListCtrl::GetTextColour() const // Sets the text colour of the listview void wxListCtrl::SetTextColour(const wxColour& col) { - ListView_SetTextColor(GetHwnd(), PALETTERGB(col.Red(), col.Green(), col.Blue())); + ListView_SetTextColor(GetHwnd(), wxColourToPalRGB(col)); } // Gets the index of the topmost visible item when in