mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
Merge remote-tracking branch 'tuxbox/master'
This commit is contained in:
@@ -890,9 +890,11 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
pos -= dir * items.size();
|
||||
wrap = true;
|
||||
}
|
||||
if (pos >= (int)items.size())
|
||||
if (!items.empty() && pos >= (int)items.size())
|
||||
pos = (int)items.size() - 1;
|
||||
do {
|
||||
if(items.empty())
|
||||
break;
|
||||
CMenuItem* item = items[pos];
|
||||
if (item->isSelectable()) {
|
||||
if (pos < page_start[current_page + 1] && pos >= page_start[current_page]) {
|
||||
@@ -1225,7 +1227,6 @@ void CMenuWidget::initSelectable()
|
||||
|
||||
void CMenuWidget::paint()
|
||||
{
|
||||
OnBeforePaint();
|
||||
if (header){
|
||||
if ((bool)header->getCornerRadius() != (bool)g_settings.rounded_corners) //ensure reset if corner mode was changed
|
||||
ResetModules();
|
||||
@@ -1236,6 +1237,8 @@ void CMenuWidget::paint()
|
||||
calcSize();
|
||||
CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8 /*, nameString.c_str()*/);
|
||||
|
||||
OnBeforePaint();
|
||||
|
||||
// paint head
|
||||
if (header == NULL){
|
||||
header = new CComponentsHeader(x, y, width + sb_width, hheight, getName(), iconfile);
|
||||
@@ -1388,7 +1391,7 @@ void CMenuWidget::saveScreen()
|
||||
|
||||
delete[] background;
|
||||
|
||||
background = new fb_pixel_t [full_width * full_height];
|
||||
background = new fb_pixel_t [full_width * (full_height+fbutton_height)];
|
||||
if(background)
|
||||
frameBuffer->SaveScreen(x /*-ConnectLineBox_Width*/, y, full_width, full_height + fbutton_height, background);
|
||||
}
|
||||
|
Reference in New Issue
Block a user