simplify last shadow-changes ...

I didn't know about the possibility to add a shadow directly to
the scrollbar.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 738ffc1d24
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-19 (Mon, 19 Jun 2017)

Origin message was:
------------------
- simplify last shadow-changes ...

I didn't know about the possibility to add a shadow directly to
the scrollbar.


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-06-19 16:20:49 +02:00
parent 8bbe55189d
commit 970c5c123f
3 changed files with 3 additions and 14 deletions

View File

@@ -1492,11 +1492,7 @@ void CFileBrowser::paint()
int total_pages;
int current_page;
getScrollBarData(&total_pages, &current_page, filelist.size(), listmaxshow, selected);
paintScrollBar(x + width - SCROLLBAR_WIDTH, y + header_height, SCROLLBAR_WIDTH, item_height*listmaxshow, total_pages, current_page);
// shadow
frameBuffer->paintBoxRel(x + width, y + header_height + OFFSET_SHADOW, OFFSET_SHADOW, item_height*listmaxshow, COL_SHADOW_PLUS_0);
paintScrollBar(x + width - SCROLLBAR_WIDTH, y + header_height, SCROLLBAR_WIDTH, item_height*listmaxshow, total_pages, current_page, CC_SHADOW_ON);
}
void CFileBrowser::SMSInput(const neutrino_msg_t msg)