added another, more convenient, wxRGBToColour() overload
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -207,6 +207,11 @@ inline COLORREF wxColourToRGB(const wxColour& c)
|
|||||||
return PALETTERGB(c.Red(), c.Green(), c.Blue());
|
return PALETTERGB(c.Red(), c.Green(), c.Blue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline wxColour wxRGBToColour(COLORREF rgb)
|
||||||
|
{
|
||||||
|
return wxColour(GetRValue(rgb), GetGValue(rgb), GetBValue(rgb));
|
||||||
|
}
|
||||||
|
|
||||||
inline void wxRGBToColour(wxColour& c, COLORREF rgb)
|
inline void wxRGBToColour(wxColour& c, COLORREF rgb)
|
||||||
{
|
{
|
||||||
c.Set(GetRValue(rgb), GetGValue(rgb), GetBValue(rgb));
|
c.Set(GetRValue(rgb), GetGValue(rgb), GetBValue(rgb));
|
||||||
|
Reference in New Issue
Block a user