fix save current selected video mode
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Oct 2008 16:04:07 +0000 (16:04 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Oct 2008 16:04:07 +0000 (16:04 +0000)
lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
lib/python/Plugins/SystemPlugins/Videomode/plugin.py

index dee1b0d2e6a8dd4b27e30c2b78d33c040ac26ef9..2422475eaa0ba7997ac292b3bcb99b20441d8565 100644 (file)
@@ -167,6 +167,7 @@ class VideoHardware:
                self.updateAspect(None)
 
        def saveMode(self, port, mode, rate):
+               print "saveMode", port, mode, rate
                config.av.videoport.value = port
                config.av.videoport.save()
                config.av.videomode[port].value = mode
index b1a146cbe15948072f1368f6b90bbc7306f49b09..ab7aad727fd547e18a618bb1de65281eba324709 100644 (file)
@@ -127,11 +127,8 @@ class VideoSetup(Screen, ConfigListScreen):
        def apply(self):
                port = config.av.videoport.value
                mode = config.av.videomode[port].value
-               rate =config.av.videorate[mode].value
+               rate = config.av.videorate[mode].value
                if (port, mode, rate) != self.last_good:
-                       config.av.videoport.value = self.last_good[0]
-                       config.av.videomode[port].value = self.last_good[1]
-                       config.av.videorate[mode].value = self.last_good[2]
                        self.hw.setMode(port, mode, rate)
                        from Screens.MessageBox import MessageBox
                        self.session.openWithCallback(self.confirm, MessageBox, "Is this videomode ok?", MessageBox.TYPE_YESNO, timeout = 20, default = False)