summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 306660ce..318e1c6b 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -1407,7 +1407,11 @@ bool cFlatDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Current
LeftSecond = Left;
cString channame;
+
w = menuItemWidth / 10 * 2;
+ if( !isScrolling )
+ w = (menuItemWidth - scrollBarWidth)/ 10 * 2;
+
if( Config.MenuEventView == 2 || Config.MenuEventView == 3 ) {
channame = Channel->Name();
w = font->Width(channame);
@@ -1426,7 +1430,10 @@ bool cFlatDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Current
Left += w + marginItem * 2;
if( Event ) {
- int PBWidth = menuItemWidth/20;
+ int PBWidth = menuItemWidth / 20;
+
+ if( !isScrolling )
+ PBWidth = (menuItemWidth - scrollBarWidth) / 20;
time_t now = time(NULL);
if( (now >= (Event->StartTime() - 2*60) ) ) {