aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/Videomode
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2008-11-17 23:34:41 +0100
committerghost <andreas.monzner@multimedia-labs.de>2008-11-17 23:34:41 +0100
commit5aa89f34249397330995cc0ab1e080c1f567e174 (patch)
tree18f02352d51552b714d70da9bd65053b32029d5e /lib/python/Plugins/SystemPlugins/Videomode
parent9ca172f45cc02fe5cb693e7d35aade7d2233d448 (diff)
downloadenigma2-5aa89f34249397330995cc0ab1e080c1f567e174.tar.gz
enigma2-5aa89f34249397330995cc0ab1e080c1f567e174.zip
get rid of some floating point values
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/Videomode')
-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):