allow skin elements to use alphablend. *BE CAREFUL:* This is a major performance...
[enigma2.git] / skin.py
diff --git a/skin.py b/skin.py
index baa53f74ddf5ba3de5eb3f3f504a548cf9a4df11..8de161dae9dd4f6ae4387db9f86c6c8985b3c671 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -56,7 +56,9 @@ try:
 except (SkinError, IOError, AssertionError), err:
        print "SKIN ERROR:", err
        print "defaulting to standard skin..."
+       config.skin.primary_skin.value = 'skin.xml'
        loadSkin('skin.xml')
+
 loadSkin('skin_default.xml')
 
 def parsePosition(str):
@@ -128,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: