diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-04-27 00:24:06 +0200 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-04-27 00:24:06 +0200 |
commit | 4b3dfaf108a2b1e9f48aa342c4be99e055922041 (patch) | |
tree | e118ae6d7655a54775c876e525c2579b4eb37eae | |
parent | b69fc806b7d327c79f48c6ea1bde6d5b136123fe (diff) | |
download | skin-flatplus-4b3dfaf108a2b1e9f48aa342c4be99e055922041.tar.gz skin-flatplus-4b3dfaf108a2b1e9f48aa342c4be99e055922041.tar.bz2 |
fix chan name witdh in program menu
-rw-r--r-- | README | 5 | ||||
-rw-r--r-- | displaymenu.c | 11 |
2 files changed, 14 insertions, 2 deletions
@@ -37,6 +37,11 @@ Die Logos müssen im folgenden Ordner zur Verfügung gestellt werden: Der Skin muss im Menü unter Einstellungen -> OSD ausgewählt werden. +TVScraper & scraper2vdr +------------ +Since version 0.3.0 the skin support TVScraper & scraper2vdr. +With both plugins you'll get poster, banner and actor images for recordings and epg info. +If You use scraper2vdr, which I recommend, you'll also get movie and series information. Themes and theme specific Icons ------------------------------- diff --git a/displaymenu.c b/displaymenu.c index d9330910..85d2d5a2 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -1314,15 +1314,22 @@ bool cFlatDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Current Left += imageBGWidth + marginItem * 2; LeftSecond = Left; + cString channame; w = menuItemWidth / 10 * 2; + if( Config.MenuEventView == 2 || Config.MenuEventView == 3 ) { + channame = Channel->Name(); + w = font->Width(channame); + } else + channame = Channel->ShortName(true); + if( Channel->GroupSep() ) { int lineTop = Top + (fontHeight - 3) / 2; menuPixmap->DrawRectangle(cRect( Left, lineTop, menuItemWidth - Left, 3), ColorFg); Left += w / 2; - cString groupname = cString::sprintf(" %s ", Channel->ShortName(true)); + cString groupname = cString::sprintf(" %s ", *channame); menuPixmap->DrawText(cPoint(Left, Top), groupname, ColorFg, ColorBg, font, 0, 0, taCenter); } else - menuPixmap->DrawText(cPoint(Left, Top), Channel->ShortName(true), ColorFg, ColorBg, font, w); + menuPixmap->DrawText(cPoint(Left, Top), channame, ColorFg, ColorBg, font, w); Left += w + marginItem * 2; |