From: Stefan Pluecken Date: Fri, 25 Jan 2008 01:08:58 +0000 (+0000) Subject: use special refresh rate selection for DVI ports X-Git-Tag: 2.6.0~1590 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/3861923553aad99f8b1a5ce5d81e7d9b035b65bb use special refresh rate selection for DVI ports --- diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py index 45ff6f0c..8fffa5a9 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py @@ -48,7 +48,8 @@ class VideoWizard(Wizard): list = [] for port in self.hw.getPortList(): - list.append((port, port)) + if self.hw.isPortUsed(port): + list.append((port, port)) return list def inputSelectionMade(self, index): diff --git a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml index b4b9faf4..933d5342 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml +++ b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml @@ -27,8 +27,11 @@ self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() - - + + +self.condition = (self.port != "DVI") + + @@ -39,6 +42,40 @@ self["arrowup"].moveTo(557, 355, 1) self["arrowdown"].startMoving() self["arrowup"].startMoving() self["rc"].moveTo(500, 50, 1) +self["rc"].startMoving() + + + + +self.condition = (self.port == "DVI") + + + + +self["arrowdown"].moveTo(557, 232, 1) +self["arrowdown"].startMoving() +self["arrowup"].moveTo(800, 232, 1) +self["arrowup"].startMoving() +self["rc"].moveTo(500, 50, 1) +self["rc"].startMoving() + + + + +self.condition = (self.port == "DVI") + + + + + + + + +self["arrowdown"].moveTo(557, 232, 1) +self["arrowdown"].startMoving() +self["arrowup"].moveTo(800, 232, 1) +self["arrowup"].startMoving() +self["rc"].moveTo(500, 50, 1) self["rc"].startMoving()