From 749b4634204b22addd355eb71cfc93defb4d59cc Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 19 Dec 2016 17:21:51 +0100 Subject: [PATCH] CMenuWidget: add external methode to paint scrollbar Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/abff070ad7143af971fb5603b55625d97ce39c04 Author: Thilo Graf Date: 2016-12-19 (Mon, 19 Dec 2016) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 70ea05736..2958d35ea 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1343,10 +1343,9 @@ void CMenuWidget::paintItems() if(total_pages>1) { int item_height=height-(item_start_y-y); - frameBuffer->paintBoxRel(x+ width,item_start_y, 15, item_height, COL_SCROLLBAR_PASSIVE_PLUS_0, RADIUS_MIN); - frameBuffer->paintBoxRel(x+ width +2, item_start_y+ 2+ current_page*(item_height-4)/total_pages, 11, (item_height-4)/total_pages, COL_SCROLLBAR_ACTIVE_PLUS_0, RADIUS_MIN); - /* background of menu items, paint every time because different items can have - * different height and this might leave artifacts otherwise after changing pages */ + paintScrollBar(x+ width, item_start_y, 15, item_height, total_pages, current_page); +// /* background of menu items, paint every time because different items can have +// * different height and this might leave artifacts otherwise after changing pages */ frameBuffer->paintBoxRel(x,item_start_y, width,item_height, COL_MENUCONTENT_PLUS_0); }