reapply patch for making 640x480 the highest entry in the DVI-PC modes
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 2 Jun 2008 11:02:52 +0000 (11:02 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 2 Jun 2008 11:02:52 +0000 (11:02 +0000)
list (since every PC monitor should be able to display this mode)

lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py

index f46b11c26b3787754554a972b0eb0d705146861b..ae337ef1b114dc3ea9e049704d883bd8113402d1 100644 (file)
@@ -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