No changes, just use helper wxColourToPalRGB() in wxMSW code.

This is shorter than writing out all wxColour components.
This commit is contained in:
Vadim Zeitlin
2015-07-27 03:40:16 +02:00
parent 6caa5e92c1
commit 2c61e1b0da

View File

@@ -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