mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- epgplus: use getScrollBarData() function
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1429,8 +1429,12 @@ void EpgPlus::paint()
|
||||
this->timeLine->paintGrid();
|
||||
|
||||
// paint slider
|
||||
int total_pages = ((this->channelList->getSize() - 1) / this->maxNumberOfDisplayableEntries) + 1;
|
||||
int current_page = this->selectedChannelEntry == NULL ? 0 : (this->selectedChannelEntry->index / this->maxNumberOfDisplayableEntries);
|
||||
int total_pages;
|
||||
int current_page;
|
||||
getScrollBarData(&total_pages, ¤t_page,
|
||||
this->channelList->getSize(),
|
||||
this->maxNumberOfDisplayableEntries,
|
||||
this->selectedChannelEntry == NULL ? 0 : this->selectedChannelEntry->index);
|
||||
|
||||
paintScrollBar(this->sliderX, this->sliderY, this->sliderWidth, this->sliderHeight, total_pages, current_page);
|
||||
}
|
||||
|
Reference in New Issue
Block a user