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 ed48546..8de161d 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(
                        # 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:
                                }[value])
                elif attrib == "orientation": # used by eSlider
                        try: