]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed transparency handling broken by the last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 13 Feb 2006 15:30:28 +0000 (15:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 13 Feb 2006 15:30:28 +0000 (15:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/xpmdecod.cpp

index 46a7c2486c38ba3efba5d6656d2a2df8dcadef55..04b25527e2789cc278305f2dc1390086120e49eb 100644 (file)
@@ -737,6 +737,9 @@ wxImage wxXPMDecoder::ReadData(const char **xpm_data)
         {
             img.SetMask(true);
             img.SetMaskColour(255, 0, 255);
+            clr_data.R =
+            clr_data.B = 255;
+            clr_data.G = 0;
             hasMask = true;
             maskKey = key;
         }