X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=skin.py;h=a0190f1c2dfbdc1f2f58700ce6ed38d18f0797ae;hp=b490f7392d507463c127435ec2852ea2ae068459;hb=5219d43296787b3592eedba7fd78b54e87638351;hpb=9ec5fc545cfff7addbfd5b50ee9d6d60ab419e0d diff --git a/skin.py b/skin.py index b490f73..a0190f1 100755 --- a/skin.py +++ b/skin.py @@ -140,6 +140,17 @@ def applySingleAttribute(guiObject, desktop, attrib, value, scale = ((1,1),(1,1) guiObject.move(parsePosition(value, scale, desktop, guiObject.csize())) elif attrib == 'size': guiObject.resize(parseSize(value, scale)) + elif attrib == 'animationPaused': + pass + elif attrib == 'animationMode': + guiObject.setAnimationMode( + { "disable": 0x00, + "off": 0x00, + "offshow": 0x10, + "offhide": 0x01, + "onshow": 0x01, + "onhide": 0x10, + }[value]) elif attrib == 'title': guiObject.setTitle(_(value)) elif attrib == 'text': @@ -284,8 +295,8 @@ def loadSingleSkinData(desktop, skin, path_prefix): else: bpp = 32 #print "Resolution:", xres,yres,bpp - from enigma import gFBDC - gFBDC.getInstance().setResolution(xres, yres) + from enigma import gMainDC + gMainDC.getInstance().setResolution(xres, yres) desktop.resize(eSize(xres, yres)) if bpp != 32: # load palette (not yet implemented)