aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-06-02 11:02:52 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-06-02 11:02:52 +0000
commit4f5588aec29403052ef7ec18e3d5f3647e241a52 (patch)
tree0f5a70740ca4baaeaf07503fe476503451157c8c /lib/python
parentb6b0a7d3c89c6f7fa4f6b64950b8963658f2baab (diff)
downloadenigma2-4f5588aec29403052ef7ec18e3d5f3647e241a52.tar.gz
enigma2-4f5588aec29403052ef7ec18e3d5f3647e241a52.zip
reapply patch for making 640x480 the highest entry in the DVI-PC modes
list (since every PC monitor should be able to display this mode)
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
index f46b11c2..ae337ef1 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
@@ -103,7 +103,9 @@ class VideoWizard(WizardLanguage):
print "inputSelect:", port
modeList = self.hw.getModeList(self.selection)
print "modeList:", modeList
- self.hw.setMode(port = port, mode = modeList[0][0], rate = modeList[0][1][0])
+ self.port = port
+ ratesList = self.listRates(modeList[0][0])
+ self.hw.setMode(port = port, mode = modeList[0][0], rate = ratesList[0][0])
def listModes(self):
list = []
@@ -137,6 +139,11 @@ class VideoWizard(WizardLanguage):
print mode
if mode[0] == querymode:
for rate in mode[1]:
+ if self.port == "DVI-PC":
+ print "rate:", rate
+ if rate == "640x480":
+ list.insert(0, (rate, rate))
+ continue
list.append((rate, rate))
return list