diff options
author | louis <louis.braun@gmx.de> | 2013-03-09 16:42:48 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-03-09 16:42:48 +0100 |
commit | 3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9 (patch) | |
tree | cd8bba326fcdb4541f85e3be335b4671f21bed2a /displaymenu.c | |
parent | c7785076bf49db3d0ab1ae63ccb19bd3f9fe43e3 (diff) | |
download | skin-nopacity-3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9.tar.gz skin-nopacity-3d4c1d84b7cd2ca23e3fda446a30b55a1d4878d9.tar.bz2 |
Restructured setup menu
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/displaymenu.c b/displaymenu.c index 4b8f274..d4ef064 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -44,7 +44,7 @@ cNopacityDisplayMenu::~cNopacityDisplayMenu() { delete detailView; } timers.Clear(); - for (int i=0; i<12; i++) + for (int i=0; i<14; i++) cOsdProvider::DropImage(handleBackgrounds[i]); for (int i=0; i<4; i++) cOsdProvider::DropImage(handleButtons[i]); @@ -530,8 +530,9 @@ void cNopacityDisplayMenu::SetItem(const char *Text, int Index, bool Current, bo cNopacityMenuItem *item; cPoint itemSize; if (((MenuCategory() == mcMain)&&(config.narrowMainMenu)) || ((MenuCategory() == mcSetup)&&(config.narrowSetupMenu))){ - item = new cNopacityMainMenuItem(osd, Text, Selectable); - menuView->GetMenuItemSize(mcMain, &itemSize); + bool isSetup = (MenuCategory() == mcSetup)?true:false; + item = new cNopacityMainMenuItem(osd, Text, Selectable, isSetup); + menuView->GetMenuItemSize(MenuCategory(), &itemSize); item->SetFont(menuView->GetMenuItemFont(mcMain)); if (config.useMenuIcons) hasIcons = true; |