From 8ad3d72d92a830d66a874ea56128c4a4e7b06ae0 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 10 Apr 2008 13:12:24 +0000 Subject: [PATCH] allow setting a videomode directly with 1(=720p),2(=1080i),3(=scart) --- .../Plugins/SystemPlugins/Videomode/VideoWizard.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py index 18b20f6e..fb8f4016 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py @@ -158,3 +158,16 @@ class VideoWizard(WizardLanguage): config.misc.showtestcard.value = True else: config.misc.showtestcard.value = False + + def keyNumberGlobal(self, number): + if number in [1,2,3]: + if number == 1: + self.hw.saveMode("DVI", "720p", "multi") + elif number == 2: + self.hw.saveMode("DVI", "1080i", "multi") + elif number == 3: + self.hw.saveMode("Scart", "Multi", "multi") + self.hw.setConfiguredMode() + self.close() + + WizardLanguage.keyNumberGlobal(self, number) -- 2.30.2