diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 21:52:27 +0100 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 21:52:27 +0100 |
commit | fdb8ccc63d6fae2b7bde71073da2f556e281bc6d (patch) | |
tree | fc1114eccc484f8ad32981419445b71c5f293713 /ttxtsubs.c | |
parent | 30edd8388fb343416ede4f5dee6a77adf4cce05a (diff) | |
download | vdr-plugin-ttxtsubs-fdb8ccc63d6fae2b7bde71073da2f556e281bc6d.tar.gz vdr-plugin-ttxtsubs-fdb8ccc63d6fae2b7bde71073da2f556e281bc6d.tar.bz2 |
Removed VDR < 1.6.0 support code
Diffstat (limited to 'ttxtsubs.c')
-rw-r--r-- | ttxtsubs.c | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -248,20 +248,8 @@ bool cPluginTtxtsubs::Start(void) globals.mHearingImpaireds[0][1] = mOldHearingImpaired; } else { // get lang from OSD lang -#if defined(APIVERSNUM) && APIVERSNUM < 10507 - int n = Setup.OSDLanguage + 1; - if(n > gNumLanguages) { - strncpy(globals.mLanguages[0][0], "eng", 4); - } else { - strncpy(globals.mLanguages[0][0], gLanguages[n][0], 4); - globals.mLanguages[0][0][3] = '\0'; - strncpy(globals.mLanguages[0][1], gLanguages[n][1], 4); - globals.mLanguages[0][1][3] = '\0'; - } -#else strncpy(globals.mLanguages[0][0], Setup.OSDLanguage, 4); globals.mLanguages[0][0][3] = '\0'; -#endif } } @@ -343,9 +331,7 @@ bool cPluginTtxtsubs::SetupParse(const char *Name, const char *Value) else if(!strcasecmp(Name, "FrenchSpecial")) globals.mFrenchSpecial = atoi(Value); else if(!strcasecmp(Name, "LineSpacing")) globals.mLineSpacing = atoi(Value); else if(!strcasecmp(Name, "DvbSources")) globals.mDvbSources = atoi(Value); -#if defined(APIVERSNUM) && APIVERSNUM >= 10503 else if(!strcasecmp(Name, "FontSize")) globals.mFontSize = atoi(Value); -#endif else if(!strcasecmp(Name, "FgColor")) globals.mFgColor = atoi(Value); else if(!strcasecmp(Name, "BgColor")) globals.mBgColor = atoi(Value); else if(!strcasecmp(Name, "CustomColor")) globals.mCustomColor = atoi(Value); @@ -412,11 +398,7 @@ void cPluginTtxtsubs::Action(void) globals.mI18nLanguage = i - 1; } } -#if defined(APIVERSNUM) && APIVERSNUM < 10507 - if(globals.mI18nLanguage < 0 || globals.mI18nLanguage >= I18nNumLanguages) -#else if(globals.mI18nLanguage < 0 || globals.mI18nLanguage >= I18nLanguages()->Size()) -#endif globals.mI18nLanguage = 0; // default to iso8859-1 if no predefined charset StartTtxtLive(dev, c->GetChannelID(), pid, page); FreeTtxtInfoData(&info); @@ -701,9 +683,7 @@ cMenuSetupTtxtsubs::cMenuSetupTtxtsubs(cPluginTtxtsubs *ttxtsubs, int doStore) mConf.mDvbSources = 0; // menu item segfaults if out of range Add(new cMenuEditStraItem(tr("DVB Source Selection"), &mConf.mDvbSources, 4, dvbSources)); -#if defined(APIVERSNUM) && APIVERSNUM >= 10503 Add(new cMenuEditIntItem(tr("Font Size (pixel)"), &mConf.mFontSize, 10, MAXFONTSIZE)); -#endif if(mConf.mFgColor < 0 || mConf.mFgColor >= numTextColors) mConf.mFgColor = 1; // menu item segfaults if out of range Add(new cMenuEditStraItem(tr("Text Color"), &mConf.mFgColor, @@ -790,9 +770,7 @@ void cMenuSetupTtxtsubs::Store(void) SetupStore("MainMenuEntry", mConf.mMainMenuEntry); SetupStore("LineSpacing", mConf.mLineSpacing); SetupStore("DvbSources", mConf.mDvbSources); -#if defined(APIVERSNUM) && APIVERSNUM >= 10503 SetupStore("FontSize", mConf.mFontSize); -#endif SetupStore("FgColor", mConf.mFgColor); SetupStore("BgColor", mConf.mBgColor); mConf.mCustomColor = (mBlue ) | (mBlue << 4) | |