diff options
author | phintuka <phintuka> | 2007-09-30 21:11:11 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-09-30 21:11:11 +0000 |
commit | eabb79d24caf829a56b7461e09d3bf402e86ebf0 (patch) | |
tree | 3a4ec4ecdb9f09fc91780b532965c1905f4d8fcd /config.c | |
parent | a87ba55fe98134122926f12e25654b4ee0d25bd1 (diff) | |
download | xineliboutput-eabb79d24caf829a56b7461e09d3bf402e86ebf0.tar.gz xineliboutput-eabb79d24caf829a56b7461e09d3bf402e86ebf0.tar.bz2 |
Configuration option for OSD layer mixing
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.c,v 1.47 2007-09-30 16:52:18 phintuka Exp $ + * $Id: config.c,v 1.48 2007-09-30 21:11:11 phintuka Exp $ * */ @@ -202,6 +202,15 @@ const char *config_t::s_subExts[] = { NULL }; +const char *config_t::s_osdMixers[] = { + trNOOP("no"), + trNOOP("grayscale"), // item [1] + trNOOP("transparent"), // item [2] + trNOOP("transparent greyscale"), // item [3] ([1 | 2]) + trNOOP("yes"), + NULL +}; + static char *strcatrealloc(char *dest, const char *src) { if (!src || !*src) @@ -426,6 +435,8 @@ config_t::config_t() { display_aspect = 0; /* auto */ hide_main_menu = 0; + osd_mixer = OSD_MIXER_FULL; + prescale_osd = 1; prescale_osd_downscale = 0; unscaled_osd = 0; @@ -654,6 +665,7 @@ bool config_t::SetupParse(const char *Name, const char *Value) else if (!strcasecmp(Name, "Audio.SoftwareVolumeControl")) sw_volume_control = atoi(Value); else if (!strcasecmp(Name, "OSD.HideMainMenu")) hide_main_menu = atoi(Value); + else if (!strcasecmp(Name, "OSD.LayersVisible")) osd_mixer = atoi(Value); else if (!strcasecmp(Name, "OSD.Prescale")) prescale_osd = atoi(Value); else if (!strcasecmp(Name, "OSD.Downscale")) prescale_osd_downscale = atoi(Value); else if (!strcasecmp(Name, "OSD.UnscaledAlways")) unscaled_osd = atoi(Value); |