aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Plugins/SystemPlugins')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
index 5e38f3e6..02fdf9a5 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
@@ -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):