summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-12-02 20:27:02 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-12-02 20:27:02 +0100
commit450f5ebe7c6d832d72f82fe725c4ce1183f99f61 (patch)
tree3aeed6229dc12e116f2b219df9e2848653d6fb3f /displaymenu.c
parent16c1aa433d7ff9cf19c620b5aaaf31ef8fa279a0 (diff)
downloadskin-flatplus-450f5ebe7c6d832d72f82fe725c4ce1183f99f61.tar.gz
skin-flatplus-450f5ebe7c6d832d72f82fe725c4ce1183f99f61.tar.bz2
update dvb devices
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c13
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);