also show SNR in dB in PositionerSetup
[enigma2.git] / lib / python / Plugins / SystemPlugins / Videomode / VideoHardware.py
index 5e38f3e647878506db8f7436291dc1aa03cc6356..02fdf9a5252454a7e6181f3685c01f9e87309381 100644 (file)
@@ -60,7 +60,7 @@ class VideoHardware:
        widescreen_modes = set(["720p", "1080i"])
 
        def getOutputAspect(self):
-               ret = 1.777777778 # 16:9
+               ret = (16,9)
                port = config.av.videoport.value
                if port not in config.av.videomode:
                        print "current port not available in getOutputAspect!!! force 16:9"
@@ -75,16 +75,16 @@ class VideoHardware:
                                else:
                                        aspect = {"16_9": "16:9", "16_10": "16:10"}[config.av.aspect.value]
                                        if aspect == "16:10":
-                                               ret = 1.6
+                                               ret = (16,10)
                        elif is_auto:
                                try:
                                        aspect_str = open("/proc/stb/vmpeg/0/aspect", "r").read()
                                        if aspect_str == "1": # 4:3
-                                               ret = 1.333333333
+                                               ret = (4,3)
                                except IOError:
                                        pass
                        else:  # 4:3
-                               ret = 1.333333333
+                               ret = (4,3)
                return ret
 
        def __init__(self):