Revert "CChannelList/COsdSetup: use showOsdChanlistSetup() from OSD-Setup"

commit has problems: bad looking, if fade is ON, menu missed channel list fonts config

This reverts commit 253579909f.
This commit is contained in:
[CST] Focus
2014-07-17 15:16:05 +04:00
parent 416646bbff
commit 0cda142ba7
3 changed files with 64 additions and 10 deletions

View File

@@ -39,7 +39,7 @@
#include <global.h>
#include <neutrino.h>
#include <neutrino_menue.h>
#include <driver/fontrenderer.h>
#include <driver/screen_max.h>
#include <driver/rcinput.h>
@@ -377,10 +377,6 @@ int CChannelList::doChannelMenu(void)
menu->addItem(new CMenuForwarder(LOCALE_CHANNELLIST_RESET_ALL, reset_all, NULL, selector, cnt, CRCInput::convertDigitToKey(shortcut++)), old_selected == i++);
snprintf(cnt, sizeof(cnt), "%d", i);
menu->addItem(new CMenuSeparator(CMenuSeparator::LINE));
//use osd channel list settings widget from COsdSetup class
CMenuWidget osd_menu_chanlist(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_OSDSETUP_CHANNELLIST);
osd_menu_chanlist.suppressDetailsLine(true);
menu->addItem(new CMenuForwarder(LOCALE_MAINMENU_SETTINGS, true, NULL, selector, cnt, CRCInput::convertDigitToKey(shortcut++)), old_selected == i++);
menu->exec(NULL, "");
delete menu;
@@ -502,7 +498,7 @@ int CChannelList::doChannelMenu(void)
{
previous_channellist_additional = g_settings.channellist_additional;
COsdSetup osd_setup;
osd_setup.showContextChanlistMenu(&osd_menu_chanlist);
osd_setup.showContextChanlistMenu();
//FIXME check font/options changed ?
hide();
calcSize();