-fix transponder seleect osd

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1027 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2011-01-11 12:17:00 +00:00
parent a6ce06ed9c
commit ea756115a0
2 changed files with 5 additions and 5 deletions

View File

@@ -189,7 +189,7 @@ void CMenuItem::paintItemButton(const int startX, const int frame_height, const
{
//paint icon centered, if we using one of these icons. Note: overwrites parameter 'icon_centered'
if (!centered)
centered = (icon_name == NEUTRINO_ICON_BUTTON_OKAY || icon_name == NEUTRINO_ICON_BUTTON_HELP || icon_name == NEUTRINO_ICON_BUTTON_HOME);
centered = (icon_name == NEUTRINO_ICON_BUTTON_OKAY || icon_name == NEUTRINO_ICON_BUTTON_HELP || icon_name == NEUTRINO_ICON_BUTTON_HOME || icon_name == NEUTRINO_ICON_BUTTON_RIGHT);
if (centered/* || icon_name == NEUTRINO_ICON_BUTTON_OKAY || icon_name == NEUTRINO_ICON_BUTTON_HELP || icon_name == NEUTRINO_ICON_BUTTON_HOME*/)
icon_x = x+ ((icon_start_x-x)/2) - (icon_w/2); //centered

View File

@@ -758,14 +758,14 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/
}
//menu->addItem(new CMenuForwarderNonLocalized(buf, true, NULL, selector, cnt), old_selected == i);
menu->addItem(new CMenuForwarderNonLocalized(buf, true, NULL, selector, cnt), false);
menu->addItem(new CMenuForwarderNonLocalized(buf, true, NULL, selector, NULL, CRCInput::RC_nokey, NULL), false);
tmplist.insert(std::pair <int, transponder>(i, tI->second));
i++;
}
if (i == 0) {
char text[255];
sprintf(text, "No transponders found for %s\n", CNeutrinoApp::getInstance()->getScanSettings().satNameNoDiseqc);
ShowHintUTF(LOCALE_MESSAGEBOX_ERROR, text, 450, 2);
std::string text = "No transponders found for ";
text += CNeutrinoApp::getInstance()->getScanSettings().satNameNoDiseqc;
ShowHintUTF(LOCALE_MESSAGEBOX_ERROR, text.c_str(), 450, 2);
return menu_return::RETURN_REPAINT;
}
menu->setSelected(old_selected);