From 3d4424f702b4c850837471b3db406cf8e5ac04c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 4 Sep 2006 11:12:36 +0000 Subject: [PATCH] reformatted DEFINE_STD_WXCOLOUR_CONSTRUCTORS to fit standard terminal; use wxALPHA_OPAQUE instead of 255 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/colour.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/wx/colour.h b/include/wx/colour.h index 685cab9d3d..78204d1843 100644 --- a/include/wx/colour.h +++ b/include/wx/colour.h @@ -20,11 +20,12 @@ // this macro avoids to repeat these lines across all colour.h files, since // Set() is a virtual function and thus cannot be called by wxColourBase // constructors -#define DEFINE_STD_WXCOLOUR_CONSTRUCTORS \ - wxColour( unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha = 255 ) \ - { Set(red, green, blue, alpha); } \ - wxColour( unsigned long colRGB ) { Set(colRGB); } \ - wxColour(const wxString &colourName) { Set(colourName); } \ +#define DEFINE_STD_WXCOLOUR_CONSTRUCTORS \ + wxColour( unsigned char red, unsigned char green, unsigned char blue, \ + unsigned char alpha = wxALPHA_OPAQUE ) \ + { Set(red, green, blue, alpha); } \ + wxColour( unsigned long colRGB ) { Set(colRGB); } \ + wxColour(const wxString &colourName) { Set(colourName); } \ wxColour(const wxChar *colourName) { Set(colourName); } -- 2.45.2