mailr16913 - /trunk/gui/misc.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 14, 2012 - 16:24:
Author: bugman
Date: Thu Jun 14 16:24:16 2012
New Revision: 16913

URL: http://svn.gna.org/viewcvs/relax?rev=16913&view=rev
Log:
Fix for the gui.misc.bitmap_setup() function for Mac OS X - all bitmaps with 
alpha had black backgrounds!


Modified:
    trunk/gui/misc.py

Modified: trunk/gui/misc.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/misc.py?rev=16913&r1=16912&r2=16913&view=diff
==============================================================================
--- trunk/gui/misc.py (original)
+++ trunk/gui/misc.py Thu Jun 14 16:24:16 2012
@@ -129,8 +129,8 @@
     # Create the bitmap object.
     bitmap = wx.Bitmap(path, wx.BITMAP_TYPE_ANY)
 
-    # Unset the mask if an alpha mask is detected.
-    if bitmap.HasAlpha():
+    # Unset the mask if an alpha mask is detected (only on GNU/Linux and MS 
Windows).
+    if bitmap.HasAlpha() and status.wx_info["os"] != "darwin":
         bitmap.SetMaskColour(None)
 
     # Return the bitmap object.




Related Messages


Powered by MHonArc, Updated Thu Jun 14 16:40:02 2012