X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40989e46b86777dd211faeb3e5d2366cdcc6d8cd..754273b6974634114f3821fdbbef8db01b4ff629:/src/msw/colour.cpp diff --git a/src/msw/colour.cpp b/src/msw/colour.cpp index b48c44724f..d79ebc9af7 100644 --- a/src/msw/colour.cpp +++ b/src/msw/colour.cpp @@ -12,13 +12,16 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include "wx/colour.h" - #ifdef __BORLANDC__ #pragma hdrstop #endif -#include "wx/gdicmn.h" +#include "wx/colour.h" + +#ifndef WX_PRECOMP + #include "wx/gdicmn.h" +#endif + #include "wx/msw/private.h" #include @@ -51,7 +54,7 @@ wxBEGIN_PROPERTIES_TABLE(wxColour) wxREADONLY_PROPERTY( Blue, unsigned char, Blue, EMPTY_MACROVALUE , 0 /*flags*/, wxT("Helpstring"), wxT("group")) wxEND_PROPERTIES_TABLE() -wxCONSTRUCTOR_3( wxColour, unsigned char, Red, unsigned char, Green, unsigned char, Blue ) +wxDIRECT_CONSTRUCTOR_3( wxColour, unsigned char, Red, unsigned char, Green, unsigned char, Blue ) wxBEGIN_HANDLERS_TABLE(wxColour) wxEND_HANDLERS_TABLE() @@ -74,7 +77,8 @@ wxColour::~wxColour() { } -void wxColour::InitWith(unsigned char r, unsigned char g, unsigned char b) +void wxColour::InitRGBA(unsigned char r, unsigned char g, unsigned char b, + unsigned char WXUNUSED(a)) { m_red = r; m_green = g;