]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/colour.cpp
fix a few hundreds of harmless unused parameters warnings and a couple of real bugs...
[wxWidgets.git] / src / mac / carbon / colour.cpp
index 24f6accd20dd3ec4ee2bca6053be47489c4aeee0..4af845a7e445e3e7c4e8a478b6a23bf47d77a07f 100644 (file)
@@ -66,11 +66,13 @@ void wxColour::FromRGBColor( WXCOLORREF* color )
     m_red = col->red >> 8;
     m_blue = col->blue >> 8;
     m_green = col->green >> 8;
+    m_alpha = 255;
 }
 
 wxColour& wxColour::operator=(const RGBColor& col)
 {
     FromRGBColor((WXCOLORREF *)&col);
+    return *this;
 }
 
 bool wxColour::IsOk() const