summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-27 10:59:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-27 10:59:50 +0200
commit81919a6647b6c02e8ea368ae0c88db367341c769 (patch)
tree302e921bc3ca3794512fe1b4db260e5eae13f0dd /config.c
parent697b3898729f2d10bf6653adc04cdf85152d0bff (diff)
downloadvdr-81919a6647b6c02e8ea368ae0c88db367341c769.tar.gz
vdr-81919a6647b6c02e8ea368ae0c88db367341c769.tar.bz2
Made the position of the channel display configurable
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.c b/config.c
index 334719ed..e5d80767 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 1.49 2001/07/22 14:15:25 kls Exp $
+ * $Id: config.c 1.50 2001/07/27 10:43:40 kls Exp $
*/
#include "config.h"
@@ -773,6 +773,7 @@ cSetup::cSetup(void)
DefaultPriority = 50;
DefaultLifetime = 50;
VideoFormat = VIDEO_FORMAT_4_3;
+ ChannelInfoPos = 0;
CurrentChannel = -1;
}
@@ -799,6 +800,7 @@ bool cSetup::Parse(char *s)
else if (!strcasecmp(Name, "DefaultPriority")) DefaultPriority = atoi(Value);
else if (!strcasecmp(Name, "DefaultLifetime")) DefaultLifetime = atoi(Value);
else if (!strcasecmp(Name, "VideoFormat")) VideoFormat = atoi(Value);
+ else if (!strcasecmp(Name, "ChannelInfoPos")) ChannelInfoPos = atoi(Value);
else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value);
else
return false;
@@ -860,6 +862,7 @@ bool cSetup::Save(const char *FileName)
fprintf(f, "DefaultPriority = %d\n", DefaultPriority);
fprintf(f, "DefaultLifetime = %d\n", DefaultLifetime);
fprintf(f, "VideoFormat = %d\n", VideoFormat);
+ fprintf(f, "ChannelInfoPos = %d\n", ChannelInfoPos);
fprintf(f, "CurrentChannel = %d\n", CurrentChannel);
f.Close();
isyslog(LOG_INFO, "saved setup to %s", FileName);