diff options
| author | Andreas Mair <amair.sob@googlemail.com> | 2012-06-06 16:23:02 +0200 |
|---|---|---|
| committer | Andreas Mair <amair.sob@googlemail.com> | 2012-06-06 16:23:02 +0200 |
| commit | 5772879e19b1588bbb541a6f7565caf5b9dbd5d6 (patch) | |
| tree | 36764175921792c51ac3eecd2b8bbc8f7f274f8e | |
| parent | 2fb36b85a08044c687354f56ec60ffe3515ebfb8 (diff) | |
| download | vdr-plugin-skinenigmang-5772879e19b1588bbb541a6f7565caf5b9dbd5d6.tar.gz vdr-plugin-skinenigmang-5772879e19b1588bbb541a6f7565caf5b9dbd5d6.tar.bz2 | |
Fixed: Main menu info area with VDR 1.7.28+.
| -rw-r--r-- | HISTORY | 1 | ||||
| -rw-r--r-- | enigma.c | 11 |
2 files changed, 10 insertions, 2 deletions
@@ -2,6 +2,7 @@ VDR Skin 'EnigmaNG' Revision History ------------------------------------------ 2012-xx-xx: Version 0.1.3 +- Fixed: Main menu info area with VDR 1.7.28+. - Added: Setup options to set width of signal information and progress bar in channel info OSD. 2012-04-29: Version 0.1.2 @@ -1740,11 +1740,16 @@ void cSkinEnigmaDisplayMenu::SetTitle(const char *Title) strTitle = NULL; } +#if VDRVERSNUM >= 10728 +#define IS_MAINMENU (MenuCategory() == mcMain) +#else char *strTitlePrefix = NULL; if (-1 == asprintf(&strTitlePrefix, "%s - ", trVDR("VDR"))) return; +#define IS_MAINMENU (strncmp(strTitlePrefix, Title, strlen(strTitlePrefix)) == 0) +#endif - if ((Title == NULL) || (isMainMenu && strncmp(strTitlePrefix, Title, strlen(strTitlePrefix)) == 0)) { + if ((Title == NULL) || (isMainMenu && IS_MAINMENU)) { if (fLockNeeded && !fLocked) { fLocked = true; TE_LOCK; @@ -1756,7 +1761,7 @@ void cSkinEnigmaDisplayMenu::SetTitle(const char *Title) bool old_fShowLogo = fShowLogo; bool old_fShowInfo = fShowInfo; - if (strTitle == NULL || strncmp(strTitlePrefix, strTitle, strlen(strTitlePrefix)) == 0) { + if (strTitle == NULL || IS_MAINMENU) { isMainMenu = true; fShowLogo = fShowLogoDefault ? EnigmaConfig.showSymbolsMenu : false; fShowInfo = EnigmaConfig.showInfo; @@ -1799,7 +1804,9 @@ void cSkinEnigmaDisplayMenu::SetTitle(const char *Title) if (fLockNeeded && !fLocked) TE_UNLOCK; } } +#if VDRVERSNUM < 10728 free (strTitlePrefix); +#endif free(strLastDate); strLastDate = NULL; |
