Merge branch 'ni/tuxbox' into ni/mp/tuxbox

Conflicts:
	src/gui/moviebrowser/mb.cpp


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1ddcc0c7ce
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-02 (Wed, 02 Nov 2016)



------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-11-02 09:50:10 +01:00
50 changed files with 5794 additions and 340 deletions

View File

@@ -905,9 +905,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]) {
@@ -1406,7 +1408,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);
}