summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-10-12 09:13:05 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-10-12 09:13:05 +0200
commit371b9be00bf3a6e301e9709bb9afd4294ea7a1dc (patch)
tree86f903265c46b9085ab891dbb173253da4214b22 /menu.c
parent90ef5ff1ac7a7e82462f7bd705318f3b5219c0f8 (diff)
downloadvdr-371b9be00bf3a6e301e9709bb9afd4294ea7a1dc.tar.gz
vdr-371b9be00bf3a6e301e9709bb9afd4294ea7a1dc.tar.bz2
Fixed switching the video format in the Setup/DVB menu
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index fcd9ba43..8c6875d9 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.212 2002/10/06 14:08:44 kls Exp $
+ * $Id: menu.c 1.213 2002/10/12 09:06:57 kls Exp $
*/
#include "menu.h"
@@ -1776,13 +1776,14 @@ cMenuSetupDVB::cMenuSetupDVB(void)
eOSState cMenuSetupDVB::ProcessKey(eKeys Key)
{
int oldPrimaryDVB = Setup.PrimaryDVB;
+ bool oldVideoFormat = Setup.VideoFormat;
eOSState state = cMenuSetupBase::ProcessKey(Key);
if (state == osBack && Key == kOk) {
- if (Setup.PrimaryDVB != oldPrimaryDVB) {
+ if (Setup.PrimaryDVB != oldPrimaryDVB)
state = osSwitchDvb;
+ if (Setup.VideoFormat != oldVideoFormat)
cDevice::PrimaryDevice()->SetVideoFormat(Setup.VideoFormat);
- }
}
return state;
}