]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpng.cpp
reenable WS_TABSTOP (patch 1045547)
[wxWidgets.git] / src / common / imagpng.cpp
index 7370823ed95347a87644f09143174163d490aa67..54c3ac8819c0a61afbf4de00cb55aefb6baf18b6 100644 (file)
@@ -287,7 +287,7 @@ FindMaskColour(unsigned char **lines, png_uint_32 width, png_uint_32 height,
         }
     }
 
-    if ( !h.FindFirstUnusedColour(&rMask, &gMask, &bMask, rMask, gMask, bMask) )
+    if ( !h.FindFirstUnusedColour(&rMask, &gMask, &bMask) )
     {
         wxLogWarning(_("Too many colours in PNG, the image may be slightly blurred."));
 
@@ -435,14 +435,8 @@ void CopyDataFromPNG(wxImage *image,
 
                     if ( transparency == Transparency_Mask )
                     {
-                        if ( IsTransparent( a ) && ( ! ( rMask || gMask || bMask ) ) )
-                        {
-                            rMask = r;
-                            gMask = g;
-                            bMask = b;
-
-                            FindMaskColour(lines, width, height, rMask, gMask, bMask );
-                        }  
+                        FindMaskColour(lines, width, height,
+                                       rMask, gMask, bMask);
                     }
                     else // transparency == Transparency_Alpha
                     {