You have change some code by wrong edit like ..
This change you do it just for DreamOS not for other images ... you removed my codes the codes compatible for all images
Python
-try:
- from enigma import BT_SCALE, BT_ALIGN_CENTER, BT_KEEP_ASPECT_RATIO
-except ImportError:
- BT_SCALE = 0
- BT_ALIGN_CENTER = 0
- BT_KEEP_ASPECT_RATIO = 0
+#Change code for support of wqhd detection
+screenwidth = getDesktop(0).size()
-# --- Safe wrappers for backward compatibility ---
-def mcentry_pixmap(pos, size, png, flags=None):
- try:
- if flags is not None:
- return MultiContentEntryPixmap(pos=pos, size=size, png=png, flags=flags)
- else:
- return MultiContentEntryPixmap(pos=pos, size=size, png=png)
- except TypeError:
- return MultiContentEntryPixmap(pos=pos, size=size, png=png)
+def getDesktopSize():
+ s = getDesktop(0).size()
+ return (s.width(), s.height())
-def mcentry_pixmap_alpha(pos, size, png, flags=None):
- try:
- if flags is not None:
- return MultiContentEntryPixmapAlphaTest(pos=pos, size=size, png=png, flags=flags)
- else:
- return MultiContentEntryPixmapAlphaTest(pos=pos, size=size, png=png)
- except TypeError:
- return MultiContentEntryPixmapAlphaTest(pos=pos, size=size, png=png)
Display More
No problem I will fix it then I will apply it to source !
