summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-09-09 14:37:15 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-09-09 14:37:15 +0200
commiteb8fbeba27db8d3c88d321ee60c3ac503b85db2c (patch)
tree01af642698496afcc89d3888fa884a6eac463742 /config.c
parent3d60eba129caad4af084340a8466a96a6050e69e (diff)
downloadvdr-eb8fbeba27db8d3c88d321ee60c3ac503b85db2c.tar.gz
vdr-eb8fbeba27db8d3c88d321ee60c3ac503b85db2c.tar.bz2
Implemented the setup options "OSD/Color key [0123]"1.7.30
Diffstat (limited to 'config.c')
-rw-r--r--config.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/config.c b/config.c
index 56454dfa..3fb4d6dc 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 2.26 2012/06/17 12:27:07 kls Exp $
+ * $Id: config.c 2.27 2012/09/09 12:58:23 kls Exp $
*/
#include "config.h"
@@ -418,6 +418,10 @@ cSetup::cSetup(void)
RecordingDirs = 1;
FoldersInTimerMenu = 1;
NumberKeysForChars = 1;
+ ColorKey0 = 0;
+ ColorKey1 = 1;
+ ColorKey2 = 2;
+ ColorKey3 = 3;
VideoDisplayFormat = 1;
VideoFormat = 0;
UpdateChannels = 5;
@@ -614,6 +618,10 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "RecordingDirs")) RecordingDirs = atoi(Value);
else if (!strcasecmp(Name, "FoldersInTimerMenu")) FoldersInTimerMenu = atoi(Value);
else if (!strcasecmp(Name, "NumberKeysForChars")) NumberKeysForChars = atoi(Value);
+ else if (!strcasecmp(Name, "ColorKey0")) ColorKey0 = atoi(Value);
+ else if (!strcasecmp(Name, "ColorKey1")) ColorKey1 = atoi(Value);
+ else if (!strcasecmp(Name, "ColorKey2")) ColorKey2 = atoi(Value);
+ else if (!strcasecmp(Name, "ColorKey3")) ColorKey3 = atoi(Value);
else if (!strcasecmp(Name, "VideoDisplayFormat")) VideoDisplayFormat = atoi(Value);
else if (!strcasecmp(Name, "VideoFormat")) VideoFormat = atoi(Value);
else if (!strcasecmp(Name, "UpdateChannels")) UpdateChannels = atoi(Value);
@@ -713,6 +721,10 @@ bool cSetup::Save(void)
Store("RecordingDirs", RecordingDirs);
Store("FoldersInTimerMenu", FoldersInTimerMenu);
Store("NumberKeysForChars", NumberKeysForChars);
+ Store("ColorKey0", ColorKey0);
+ Store("ColorKey1", ColorKey1);
+ Store("ColorKey2", ColorKey2);
+ Store("ColorKey3", ColorKey3);
Store("VideoDisplayFormat", VideoDisplayFormat);
Store("VideoFormat", VideoFormat);
Store("UpdateChannels", UpdateChannels);