menue: use SCROLLBAR_WIDTH define

Origin commit data
------------------
Branch: ni/coolstream
Commit: 97cfb36041
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-20 (Tue, 20 Dec 2016)

Origin message was:
------------------
- menue: use SCROLLBAR_WIDTH define

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-12-20 10:26:59 +01:00
parent 067c2ace42
commit 5b6c556d44

View File

@@ -1194,7 +1194,7 @@ void CMenuWidget::calcSize()
//scrollbar width
sb_width=0;
if(total_pages > 1)
sb_width=15;
sb_width=SCROLLBAR_WIDTH;
full_width = /*ConnectLineBox_Width+*/width+sb_width+OFFSET_SHADOW;
full_height = height+RADIUS_LARGE+OFFSET_SHADOW*2 /*+hint_height+OFFSET_INTER*/;
@@ -1325,9 +1325,9 @@ void CMenuWidget::paintItems()
if(total_pages>1)
{
int item_height=height-(item_start_y-y);
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 */
paintScrollBar(x+ width, item_start_y, sb_width, 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);
}