X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2545022c72047da13d89964e013adb68c05a1807..afa59b4e8828f1fff43c3c0d4303adf2c6ac59e5:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 56e2bab9be..d643ce0773 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -21,8 +21,8 @@ #include #ifdef __WXMICROWIN__ -/* Extra prototypes and symbols not defined by MicroWindows */ -#include "wx/msw/microwin.h" + // Extra prototypes and symbols not defined by MicroWindows + #include "wx/msw/microwin.h" #endif // undefine conflicting symbols which were defined in windows.h @@ -200,12 +200,11 @@ extern LONG APIENTRY _EXPORT #if wxUSE_GUI #include -#include // 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)