diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-12-02 20:27:02 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-12-02 20:27:02 +0100 |
commit | 450f5ebe7c6d832d72f82fe725c4ce1183f99f61 (patch) | |
tree | 3aeed6229dc12e116f2b219df9e2848653d6fb3f /displaymenu.c | |
parent | 16c1aa433d7ff9cf19c620b5aaaf31ef8fa279a0 (diff) | |
download | skin-flatplus-450f5ebe7c6d832d72f82fe725c4ce1183f99f61.tar.gz skin-flatplus-450f5ebe7c6d832d72f82fe725c4ce1183f99f61.tar.bz2 |
update dvb devices
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/displaymenu.c b/displaymenu.c index 92015903..b034c417 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -4060,10 +4060,17 @@ int cFlatDisplayMenu::DrawMainMenuWidgetDVBDevices(int wLeft, int wWidth, int Co channelName = strDevice.str().c_str(); cString str = cString::sprintf("%d", i); int left = marginItem; - contentWidget.AddText(*str, false, cRect(left, ContentTop, wWidth - marginItem*2, fontSmlHeight), - Theme.Color(clrMenuEventFontInfo), Theme.Color(clrMenuEventBg), fontSml, fontSml->Width("XX"), fontSmlHeight, taRight); + if( numDevices <= 9 ) { + contentWidget.AddText(*str, false, cRect(left, ContentTop, wWidth - marginItem*2, fontSmlHeight), + Theme.Color(clrMenuEventFontInfo), Theme.Color(clrMenuEventBg), fontSml); - left += fontSml->Width("XXX"); + left += fontSml->Width("XX"); + } else { + contentWidget.AddText(*str, false, cRect(left, ContentTop, wWidth - marginItem*2, fontSmlHeight), + Theme.Color(clrMenuEventFontInfo), Theme.Color(clrMenuEventBg), fontSml, fontSml->Width("XX"), fontSmlHeight, taRight); + + left += fontSml->Width("XXX"); + } str = *(device->DeviceType()); contentWidget.AddText(*str, false, cRect(left, ContentTop, wWidth - marginItem*2, fontSmlHeight), Theme.Color(clrMenuEventFontInfo), Theme.Color(clrMenuEventBg), fontSml, fontSml->Width("XXXXXXX"), fontSmlHeight, taLeft); |