From 9ebda6e28dcc96d34b6c5c63d94883adc7ef2dd3 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 2 May 2008 14:31:47 +0000 Subject: [PATCH] Don't set fastblank to high if the currently selected port (vs. the to-be-selected port) is non-scart --- lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py index d20bc630..c90f8fd8 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py @@ -59,6 +59,8 @@ class VideoHardware: self.last_modes_preferred = [ ] self.on_hotplug = CList() self.standby = False + self.current_mode = None + self.current_port = None self.readAvailableModes() @@ -133,6 +135,7 @@ class VideoHardware: print "setMode - port:", port, "mode:", mode, "rate:", rate # we can ignore "port" self.current_mode = mode + self.current_port = port modes = self.rates[mode][rate] mode_50 = modes.get(50) @@ -307,7 +310,7 @@ class VideoHardware: else: fb = "low" else: - if config.av.videoport.value == "Scart" and config.av.colorformat.value == "rgb": + if self.current_port == "Scart" and config.av.colorformat.value == "rgb": fb = "high" else: fb = "low" -- 2.30.2