git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30908
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- if ( !h.FindFirstUnusedColour(&rMask, &gMask, &bMask) )
+ if ( !h.FindFirstUnusedColour(&rMask, &gMask, &bMask, rMask, gMask, bMask) )
{
wxLogWarning(_("Too many colours in PNG, the image may be slightly blurred."));
{
wxLogWarning(_("Too many colours in PNG, the image may be slightly blurred."));
if ( transparency == Transparency_Mask )
{
if ( transparency == Transparency_Mask )
{
- FindMaskColour(lines, width, height,
- rMask, gMask, bMask);
+ if ( IsTransparent( a ) && ( ! ( rMask || gMask || bMask ) ) )
+ {
+ rMask = r;
+ gMask = g;
+ bMask = b;
+
+ FindMaskColour(lines, width, height, rMask, gMask, bMask );
+ }
}
else // transparency == Transparency_Alpha
{
}
else // transparency == Transparency_Alpha
{