allow skin elements to use alphablend. *BE CAREFUL:* This is a major performance...
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 13 Dec 2007 01:09:02 +0000 (01:09 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 13 Dec 2007 01:09:02 +0000 (01:09 +0000)
skin.py

diff --git a/skin.py b/skin.py
index ed48546e798f8e2fe64326c6f8e4381a93bee690..8de161dae9dd4f6ae4387db9f86c6c8985b3c671 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -130,8 +130,9 @@ def applySingleAttribute(guiObject, desktop, attrib, value):
                        # guiObject.setPixmapFromFile(value)
                elif attrib == "alphatest": # used by ePixmap
                        guiObject.setAlphatest(
-                               { "on": True,
-                                 "off": False
+                               { "on": 1,
+                                 "off": 0,
+                                 "blend": 2,
                                }[value])
                elif attrib == "orientation": # used by eSlider
                        try: