From 82a9d827975d33525f3b04c94d6ad5610f26918e Mon Sep 17 00:00:00 2001 From: phintuka Date: Tue, 12 Jun 2007 19:28:37 +0000 Subject: Setup option to change external subtitle (.sub/.srt) font size --- config.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index ee569415..7a8e52c4 100644 --- a/config.c +++ b/config.c @@ -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.39 2007-06-11 19:18:41 phintuka Exp $ + * $Id: config.c,v 1.40 2007-06-12 19:28:37 phintuka Exp $ * */ @@ -82,6 +82,8 @@ const char *config_t::s_speakerArrangements[] = "Surround 6.1", "Surround 7.1", "Pass Through", NULL}; +const char *config_t::s_subtitleSizes[] = {"default", "tiny", "small", "medium", "large", "very large", "huge", NULL }; + const char *config_t::s_subExts[] = {".sub", ".srt", ".txt", ".ssa", ".SUB", ".SRT", ".TXT", ".SSA", NULL}; @@ -318,6 +320,7 @@ config_t::config_t() { strn0cpy(spu_lang[2], "de", sizeof(spu_lang[2])); strn0cpy(spu_lang[1], "fi", sizeof(spu_lang[1])); //strn0cpy(spu_lang[3], "" , sizeof(spu_lang[3])); + extsub_size = -1; alpha_correction = 0; alpha_correction_abs = 0; @@ -540,6 +543,7 @@ bool config_t::SetupParse(const char *Name, const char *Value) else if (!strcasecmp(Name, "OSD.SpuLang1")) STRN0CPY(spu_lang[1], Value); else if (!strcasecmp(Name, "OSD.SpuLang2")) STRN0CPY(spu_lang[2], Value); else if (!strcasecmp(Name, "OSD.SpuLang3")) STRN0CPY(spu_lang[3], Value); + else if (!strcasecmp(Name, "OSD.ExtSubSize")) extsub_size = atoi(Value); else if (!strcasecmp(Name, "RemoteMode")) remote_mode = atoi(Value); else if (!strcasecmp(Name, "Remote.ListenPort")) listen_port = atoi(Value); -- cgit v1.2.3