aboutsummaryrefslogtreecommitdiffstats
path: root/src/tvtimeconf.c
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2004-09-21 01:17:04 +0000
committervektor <devnull@localhost>2004-09-21 01:17:04 +0000
commitfa4ee8c73d6c8f43374bc6f12821b429d28b129f (patch)
treedb1cb98c9cb6107f07f0b1aaca808a4dfbbb3b9f /src/tvtimeconf.c
parent464f4d739559c86071eb4b719a5143dcad4d8e67 (diff)
20 Sep 2004 Billy Biggs <vektor@dumbterm.net>
* tvtime/src/videoinput.h: Call it saturation not colour. * tvtime/src/videoinput.c: Ibid. * tvtime/src/commands.h: Ibid. * tvtime/src/commands.c: Ibid. * tvtime/src/station.h: Ibid. * tvtime/src/station.c: Ibid. * tvtime/src/tvtimeconf.h: Ibid. * tvtime/src/tvtimeconf.c: Ibid. * tvtime/src/utils.h: Ibid. * tvtime/src/utils.c: Ibid. * tvtime/src/tvtimeglyphs.h: Ibid. * tvtime/src/tvtime.c: Ibid. * tvtime/docs/tvtime-command.1: Ibid.
Diffstat (limited to 'src/tvtimeconf.c')
-rw-r--r--src/tvtimeconf.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/tvtimeconf.c b/src/tvtimeconf.c
index e72337b..831894d 100644
--- a/src/tvtimeconf.c
+++ b/src/tvtimeconf.c
@@ -67,7 +67,7 @@ struct config_s
int picsaverestore;
int brightness;
int contrast;
- int colour;
+ int saturation;
int hue;
int invert;
int cc;
@@ -205,7 +205,11 @@ static void parse_option( config_t *ct, xmlNodePtr node )
}
if( !xmlStrcasecmp( name, BAD_CAST "DefaultColour" ) ) {
- ct->colour = atoi( curval );
+ ct->saturation = atoi( curval );
+ }
+
+ if( !xmlStrcasecmp( name, BAD_CAST "DefaultSaturation" ) ) {
+ ct->saturation = atoi( curval );
}
if( !xmlStrcasecmp( name, BAD_CAST "DefaultHue" ) ) {
@@ -710,7 +714,7 @@ config_t *config_new( void )
ct->picsaverestore = 1;
ct->brightness = -1;
ct->contrast = -1;
- ct->colour = -1;
+ ct->saturation = -1;
ct->hue = -1;
ct->invert = 0;
ct->cc = 0;
@@ -1587,9 +1591,9 @@ int config_get_global_contrast( config_t *ct )
return ct->contrast;
}
-int config_get_global_colour( config_t *ct )
+int config_get_global_saturation( config_t *ct )
{
- return ct->colour;
+ return ct->saturation;
}
int config_get_global_hue( config_t *ct )

Privacy Policy