X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b225f65995e9eccefe9b502568b1b8e40629cd1a..e34732036315991c0ab6ab9035fa844c5080ee19:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index dffa2e32af..d643ce0773 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -204,7 +204,7 @@ extern LONG APIENTRY _EXPORT // make conversion from wxColour and COLORREF a bit less painful inline COLORREF wxColourToRGB(const wxColour& c) { - return RGB(c.Red(), c.Green(), c.Blue()); + return PALETTERGB(c.Red(), c.Green(), c.Blue()); } inline void wxRGBToColour(wxColour& c, COLORREF rgb)