summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-07-13 12:41:06 +0200
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-07-13 12:41:06 +0200
commit321756bcd76a24fc0024432a076f6042ddce9bd2 (patch)
treeb43bac50f4c15fcea21c34e91dc1c7c44f32c9f6
parent93880c3e2f3cd3e35829f1aca89fd60757a36c93 (diff)
downloadskin-flatplus-321756bcd76a24fc0024432a076f6042ddce9bd2.tar.gz
skin-flatplus-321756bcd76a24fc0024432a076f6042ddce9bd2.tar.bz2
position in menu item event
-rw-r--r--HISTORY1
-rw-r--r--displaymenu.c9
2 files changed, 9 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index f69d59c6..948fe715 100644
--- a/HISTORY
+++ b/HISTORY
@@ -29,6 +29,7 @@ VDR Plugin 'skinflatplus' Revision History
* 6 = rect bar
* 7 = round bar
- [update] decor-files for new scrollbar options
+- [fix] position in menu item event
2014-06-19: Version 0.3.1
- [fix] epg image position on channel info
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) ) ) {