mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
bouquetlist: use getScrollBarData() function
Origin commit data
------------------
Branch: ni/coolstream
Commit: b0c630607f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-14 (Wed, 14 Jun 2017)
Origin message was:
------------------
- bouquetlist: use getScrollBarData() function
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -720,7 +720,6 @@ void CBouquetList::paint()
|
||||
CInfoClock::getInstance()->disableInfoClock();
|
||||
liststart = (selected/listmaxshow)*listmaxshow;
|
||||
int lastnum = liststart + listmaxshow;
|
||||
int bsize = Bouquets.empty() ? 1 : Bouquets.size();
|
||||
|
||||
numwidth = 0;
|
||||
int maxDigitWidth = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->getMaxDigitWidth();
|
||||
@@ -753,9 +752,9 @@ void CBouquetList::paint()
|
||||
}
|
||||
}
|
||||
|
||||
int _listmaxshow = listmaxshow ? listmaxshow : 1; //avoid division by zero
|
||||
int total_pages = ((bsize - 1) / _listmaxshow) + 1;
|
||||
int current_page = selected / _listmaxshow;
|
||||
int total_pages;
|
||||
int current_page;
|
||||
getScrollBarData(&total_pages, ¤t_page, Bouquets.size(), listmaxshow, selected);
|
||||
|
||||
paintScrollBar(x + width - SCROLLBAR_WIDTH, y + header_height, SCROLLBAR_WIDTH, item_height*listmaxshow, total_pages, current_page);
|
||||
}
|
||||
|
Reference in New Issue
Block a user