improved menu icon display

This commit is contained in:
louis
2014-10-26 08:26:44 +01:00
parent 1e20f0c893
commit 52d9280c66
10 changed files with 67 additions and 8 deletions

View File

@@ -6,6 +6,7 @@
#include "../libcore/helpers.h"
cDisplayMenuRootView::cDisplayMenuRootView(cTemplateView *rootView) : cView(rootView) {
cat = mcUndefined;
viewType = svUndefined;
subView = NULL;
subViewAvailable = false;
@@ -81,6 +82,7 @@ bool cDisplayMenuRootView::createOsd(void) {
void cDisplayMenuRootView::SetMenu(eMenuCategory menuCat, bool menuInit) {
eSubView newViewType = svUndefined;
cat = menuCat;
bool isListView = true;
switch (menuCat) {
case mcMain:
@@ -157,7 +159,7 @@ void cDisplayMenuRootView::SetMenu(eMenuCategory menuCat, bool menuInit) {
default:
view = new cDisplayMenuView(subView, menuInit);
}
view->SetMenuCat(cat);
//Cleanup root view
ClearRootView();
@@ -408,7 +410,8 @@ void cDisplayMenuRootView::DrawHeader(void) {
//check for standard menu entries
bool hasIcon = false;
string icon = imgCache->GetIconName(menuTitle);
string icon = imgCache->GetIconName(menuTitle, cat);
if (icon.size() > 0)
hasIcon = true;